Fix #1898: wrong order of pull and checkout
This commit is contained in:
parent
2a1b666a5e
commit
f581b93d9b
1 changed files with 2 additions and 2 deletions
|
@ -108,13 +108,13 @@ function _gitUpdate(){
|
|||
git diff --exit-code 2>&1 > /dev/null
|
||||
if [ $? != 1 ]; then
|
||||
set -e
|
||||
git checkout -f $branch
|
||||
git pull -r
|
||||
git checkout -f $branch
|
||||
else
|
||||
set -e
|
||||
git stash save -u -q
|
||||
git checkout -f $branch
|
||||
git pull -r
|
||||
git checkout -f $branch
|
||||
git stash pop -q
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue