mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2024-12-29 05:02:46 +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
|
# 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,
|
# magic to ensure that we're always inside the root of our application,
|
||||||
# no matter from which directory we'll run script
|
# no matter from which directory we'll run script
|
||||||
@ -31,7 +31,9 @@ for file in ${FILES}
|
|||||||
do
|
do
|
||||||
[ -d "${file}" ] && continue
|
[ -d "${file}" ] && continue
|
||||||
printf "%s" "${file} "
|
printf "%s" "${file} "
|
||||||
git add "${file}"
|
|
||||||
done
|
done
|
||||||
printf " - Done.\n"
|
printf " - Done.\n"
|
||||||
|
|
||||||
|
# stay with "." for (re)moved files!
|
||||||
|
git add .
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user