Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMorten Linderud <foxboron@archlinux.org>2020-05-29 23:10:18 +0200
committerLevente Polyak <anthraxx@archlinux.org>2023-03-19 22:02:04 +0100
commitb6f5220bed76c9ea9f83f4c6c81ced9977b26d77 (patch)
tree0ebe6270260b200429625e268324253e305144ec /src
parentf4213f9c360c3eb8d93a9365e844e254c47c827a (diff)
commitpkg: ensure we always stage and rm files
Signed-off-by: Morten Linderud <foxboron@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r--src/commitpkg.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/commitpkg.in b/src/commitpkg.in
index 9186378..59471bf 100644
--- a/src/commitpkg.in
+++ b/src/commitpkg.in
@@ -160,6 +160,15 @@ if [[ -z $server ]]; then
fi
if [[ -n $(git status --short --untracked-files=no) ]]; then
+ stat_busy 'Staging files'
+ for f in $(git ls-files --modified); do
+ git add "$f"
+ done
+ for f in $(git ls-files --deleted); do
+ git rm "$f"
+ done
+ stat_done
+
msgtemplate="upgpkg: $pkgbase $(get_full_version)"
if [[ -n $1 ]]; then
stat_busy 'Committing changes'