dev: git.add: fix moved or removed files

This commit is contained in:
Kay Marquardt (Gnadelwartz) 2021-01-10 15:57:04 +01:00
parent 427e4df6ca
commit b2eecc56e2
1 changed files with 4 additions and 2 deletions

View File

@ -3,7 +3,7 @@
#
# works together with git pre-push.sh and ADD all changed files since last push
#### $$VERSION$$ v1.25-dev-14-g2fe6d4b
#### $$VERSION$$ v1.25-dev-50-g427e4df
# magic to ensure that we're always inside the root of our application,
# no matter from which directory we'll run script
@ -31,7 +31,9 @@ for file in ${FILES}
do
[ -d "${file}" ] && continue
printf "%s" "${file} "
git add "${file}"
done
printf " - Done.\n"
# stay with "." for (re)moved files!
git add .