1
0
Fork 0

d&c: looks like git status is not the same everywhere so use another trick

This commit is contained in:
Clément de l'Hamaide 2014-05-22 22:08:08 +02:00
parent 0e925e2b65
commit 82931efe42

View file

@ -91,8 +91,8 @@ function _gitUpdate(){
fi
branch=$1
set +e
git status | grep -q "nothing to commit, working directory clean"; result=$?
if [ $result != 1 ]; then
git diff --exit-code 2>&1 > /dev/null
if [ $? != 1 ]; then
set -e
git checkout -f $branch
git pull -r