From b2eecc56e25dcbe87a4159ebec14bc575ff4af41 Mon Sep 17 00:00:00 2001 From: "Kay Marquardt (Gnadelwartz)" Date: Sun, 10 Jan 2021 15:57:04 +0100 Subject: [PATCH] dev: git.add: fix moved or removed files --- dev/git-add.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dev/git-add.sh b/dev/git-add.sh index 36916d4..c8da9f8 100755 --- a/dev/git-add.sh +++ b/dev/git-add.sh @@ -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 . +