mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
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 <jan@janware.com>
This commit is contained in:
parent
0d4394df94
commit
ce5111e7eb
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue