mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2024-12-28 04:45:00 +00:00
dev: git.add: fix moved or removed files
This commit is contained in:
parent
427e4df6ca
commit
b2eecc56e2
@ -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 .
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user