Skip to content
This repository was archived by the owner on May 1, 2018. It is now read-only.

Commit 2c14de2

Browse files
committed
Fix set-upstream deprecation warnings
1 parent a79c9ff commit 2c14de2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/git_remote_branch.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class NotOnGitRepositoryError < RuntimeError; end
3737
:commands => [
3838
'"#{GIT} push #{origin} #{branch_name}:refs/heads/#{branch_name}"',
3939
'"#{GIT} fetch #{origin}"',
40-
'"#{GIT} branch --set-upstream #{branch_name} #{origin}/#{branch_name}"',
40+
'"#{GIT} branch --set-upstream-to=#{origin}/#{branch_name} #{branch_name}"',
4141
'"#{GIT} checkout #{branch_name}"'
4242
]
4343
},
@@ -70,7 +70,7 @@ class NotOnGitRepositoryError < RuntimeError; end
7070
:aliases => %w{track follow grab fetch},
7171
:commands => [
7272
'"#{GIT} fetch #{origin}"',
73-
'"#{GIT} branch --set-upstream #{branch_name} #{origin}/#{branch_name}"'
73+
'"#{GIT} branch --set-upstream-to=#{origin}/#{branch_name} #{branch_name}"'
7474
]
7575
}
7676
} unless defined?(COMMANDS)

0 commit comments

Comments
 (0)