Don't git reset if nothing is to be done

This commit is contained in:
Daniel Martí committed 2014-02-17 08:26:29 +01:00
1 parent 898e4485c2
commit 517ce3a274
1 file changed
+2
+2
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"