1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-10-05 18:50:09 +02:00

Don't git reset if nothing is to be done

This commit is contained in:
Daniel Martí 2014-02-17 08:26:29 +01:00
parent 898e4485c2
commit 517ce3a274

View File

@ -100,6 +100,8 @@ while read line; do
fi
done < <(git status --porcelain)
[[ -z $commands ]] && exit 0
git reset >/dev/null
for cmd in "${commands[@]}"; do
eval "$cmd"