Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix set-upstream deprecation warnings

  • Loading branch information...
commit 2c14de20574ac2679c16bdf718a71ab2e1c34f4e 1 parent a79c9ff
@LBRapid LBRapid authored
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)
Please sign in to comment.
Something went wrong with that request. Please try again.