diff --git a/scripts/purge-stale-projects.sh b/scripts/purge-stale-projects.sh index 26bbcb67..62190165 100644 --- a/scripts/purge-stale-projects.sh +++ b/scripts/purge-stale-projects.sh @@ -22,7 +22,7 @@ check_scm() if [ -d $p/.git ]; then log + checking git #git -C $p pull --no-edit || fatal "git pull failed, giving up" - if git -C $p status --porcelain | grep -v '^??' | grep -q . ; then + if git -C $p status --porcelain --untracked-files=no | grep -v '^??' | grep -q . ; then git -C $p status fatal "git in project \"$p\" has locally modified files, giving up" fi