From ce5111e7ebd5641cc2118f3cd23409e3d10328cf Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Sun, 16 Dec 2018 11:12:22 +0000 Subject: [PATCH] pgit.sh: Fix detection of pending commits git diff exit status just catches file changes, not not file additions, removals or renames. Signed-off-by: Jan Lindemann --- scripts/pgit.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pgit.sh b/scripts/pgit.sh index 33c8b333..2d75b6b9 100644 --- a/scripts/pgit.sh +++ b/scripts/pgit.sh @@ -90,7 +90,7 @@ commit() if [ "$PGIT_KEEP_GOING" != y ]; then set -e; fi for d in $pdirs; do cur=`expr $cur + 1` - if run_git -C $d diff --quiet; then + if run_git -C $d diff-index --quiet HEAD --; then log "Nothing to commit" continue fi