Permalink
Browse files

Defaults to current directory name rather than the full path

  • Loading branch information...
1 parent 3c060f1 commit df53310c45b4ad060cef75c6ae26dab138551dd6 Nicholas Kinsey committed Dec 29, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 bin/tag.coffee
View
@@ -4,6 +4,8 @@ VERSION = '1.0.0'
{exec} = require 'child_process'
+path = require 'path'
+
CoffeeScript = require 'coffee-script'
{OptionParser} = require 'coffee-script/optparse'
@@ -32,7 +34,7 @@ log parser.help() if options.help
log VERSION if options.version
if args.length <= 0
- args.push process.cwd()
+ args.push path.basename(process.cwd())
tag = args[0]

0 comments on commit df53310

Please sign in to comment.