We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51a55dc commit cba93a3Copy full SHA for cba93a3
bin/jgd
@@ -10,13 +10,13 @@ Usage: jgd [options]
10
EOS
11
opt :url, 'Github URL', type: String, default: ''
12
opt :branch, 'Destination branch', type: String, default: 'gh-pages'
13
- opt :branch_from, 'Destination branch', type: String, default: 'master'
+ opt :branch_from, 'Source branch', type: String, default: 'master'
14
end
15
16
branch = opts[:branch]
17
branch_from = opts[:branch_from]
18
fail 'branch can\'t be empty' if branch.empty?
19
-fail 'branch_from can\'t be empty' if branch_from.empty?
+fail 'branch-from can\'t be empty' if branch_from.empty?
20
url = opts[:url]
21
url = `git config --get remote.origin.url`.strip if url.empty?
22
0 commit comments