Permalink
Browse files

Use the shorthand for --set-upstream-to, -u

  • Loading branch information...
1 parent a296670 commit 29c4802439494b4c950a13f5eddfe957f4842fc7 @webmat committed Feb 23, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/git_remote_branch.rb
View
@@ -37,7 +37,7 @@ class NotOnGitRepositoryError < RuntimeError; end
:commands => [
'"#{GIT} push #{origin} #{branch_name}:refs/heads/#{branch_name}"',
'"#{GIT} fetch #{origin}"',
- '"#{GIT} branch --set-upstream-to=#{origin}/#{branch_name} #{branch_name}"',
+ '"#{GIT} branch -u #{origin}/#{branch_name} #{branch_name}"',
'"#{GIT} checkout #{branch_name}"'
]
},

0 comments on commit 29c4802

Please sign in to comment.