update.sh: use "git add -N" to avoid omitting files

This commit is contained in:
Ximin Luo 2019-01-19 13:37:56 -08:00
parent bf6dbf8f74
commit c5c80e377e

View File

@ -44,6 +44,7 @@ if ! grep -q uploaders "$PKGCFG"; then
fi
run_debcargo
git add -N "$PKGDIR"
if ! git diff --quiet -- "$PKGDIR_REL"; then
read -p "Update wrote some changes to $PKGDIR_REL, press enter to git diff..." x || true