Skip to content

Commit

Permalink
fix cli argument from git extension
Browse files Browse the repository at this point in the history
  • Loading branch information
giwa committed Oct 20, 2015
1 parent 68e82a3 commit 995d742
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/git-bugspots
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#!/usr/bin/env ruby

require 'shellwords'

if ARGV.empty? or not Dir.exists? ARGV[0]
ARGV.unshift Dir.pwd
end

exec 'bugspots', ARGV.join(' ')
cmd = "bugspots #{Shellwords.escape(ARGV[0])} #{ARGV[1..-1].join(' ')}"
exec cmd

0 comments on commit 995d742

Please sign in to comment.