Skip to content

Commit 20a3690

Browse files
committed
fix breakage: git config call
Fixes #21.
1 parent 4efba30 commit 20a3690

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/jgd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ end
1515
branch = opts[:branch]
1616
fail 'branch can\'t be empty' if branch.empty?
1717
url = opts[:url]
18-
url = `git config --get remote.origin.url` if url.empty?
18+
url = `git config --get remote.origin.url`.strip if url.empty?
1919

2020
spec = Gem::Specification.find_by_name('jgd')
2121
root = spec.gem_dir

0 commit comments

Comments
 (0)