aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/git-sync2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/git-sync b/scripts/git-sync
index cddacdd..e0117d7 100755
--- a/scripts/git-sync
+++ b/scripts/git-sync
@@ -37,7 +37,7 @@ if [ "$verbose" -ne 0 ]; then
echo 'Sync: git autocommit'
fi
git add -A "./$(git rev-parse --show-cdup)"
-if git status --porcelain | grep -q .; then
+if ! git diff --cached --quiet; then
git status --short
git commit -m "Auto-commit on ${hostident}"
fi