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