Skip to content

Commit

Permalink
*: checkout to that branch before pulling data from upstream (#5543)
Browse files Browse the repository at this point in the history
  • Loading branch information
zz-jason authored and alivxxx committed Jan 4, 2018
1 parent 835b764 commit 664ec4f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions checkout-pr-branch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ fork="https://github.com/$username/tidb"

exists=`git show-ref refs/heads/$local_branch`
if [ -n "$exists" ]; then
git checkout $local_branch
git pull $fork $branch:$local_branch
else
git fetch $fork $branch:$local_branch
Expand Down

0 comments on commit 664ec4f

Please sign in to comment.