Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix set-upstream deprecation warnings #13

Merged
merged 1 commit into from

2 participants

@LBRapid

Replaced set-upstream with set-upstream-to to get rid of deprecation warnings when running grb publish

@webmat webmat merged commit d74a503 into webmat:master
@webmat
Owner

In the process of tweaking a few more things and I'll release in a bit.

@webmat
Owner

Ok, gem version 0.3.5 is out. Thanks for the pull request!

@webmat
Owner

Sorry about the code quality, btw. This was my first gem from years ago, which evolved from a one file script. I never got around to re-writing it properly :-)

@LBRapid

No problem. What matters is it works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 22, 2013
  1. @LBRapid
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/git_remote_branch.rb
View
4 lib/git_remote_branch.rb
@@ -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 #{branch_name} #{origin}/#{branch_name}"',
+ '"#{GIT} branch --set-upstream-to=#{origin}/#{branch_name} #{branch_name}"',
'"#{GIT} checkout #{branch_name}"'
]
},
@@ -70,7 +70,7 @@ class NotOnGitRepositoryError < RuntimeError; end
:aliases => %w{track follow grab fetch},
:commands => [
'"#{GIT} fetch #{origin}"',
- '"#{GIT} branch --set-upstream #{branch_name} #{origin}/#{branch_name}"'
+ '"#{GIT} branch --set-upstream-to=#{origin}/#{branch_name} #{branch_name}"'
]
}
} unless defined?(COMMANDS)
Something went wrong with that request. Please try again.