Permalink
Browse files

branch: replace deprecated --set-upstream with --set-upstream-to

  • Loading branch information...
1 parent 6a5d9ab commit 955f97184977acaf1899d563d4eada9f09952e89 @jamiew committed Dec 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 branch
View
2 branch
@@ -36,7 +36,7 @@ if [ -n "$local_branch_exists" ] && [ ! "$local_branch_exists" == '' ]; then
# echo "Remote branch exists. Local branch is tracking: $tracking"
if [[ ! "$tracking" =~ "$remote" ]]; then
echo "Your local branch is not tracking the corresponding remote branch, fixing..."
- git branch --set-upstream $branch $remote/$branch
+ git branch --set-upstream-to $branch $remote/$branch
fi
# else
# echo "Remote branch does not exist, not doing anything"

0 comments on commit 955f971

Please sign in to comment.