Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Heusel <christian@heusel.eu>2023-06-14 00:25:03 +0200
committerLevente Polyak <anthraxx@archlinux.org>2023-06-17 23:02:36 +0200
commitbe5f54c95cbbcf46598e23aa456075cbb26806c0 (patch)
treeed3afa6df2727df9b4f39c68395dab7583280d5e
parent5c6e13a67245474e3eff9a6c2e89dfb63c2fb131 (diff)
fix(commitpkg): ensure the PKGBUILD is version controlled
Early exit in case the PKGBUILD is not yet properly under version control, which can happen for freshly initialized repositories. Furthermore print an appropriate error message including a hint how to resolve this. Fixes #154 Fixes #167 Signed-off-by: Christian Heusel <christian@heusel.eu> Signed-off-by: Levente Polyak <anthraxx@archlinux.org>
-rw-r--r--src/commitpkg.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commitpkg.in b/src/commitpkg.in
index 8a8087a..108fe81 100644
--- a/src/commitpkg.in
+++ b/src/commitpkg.in
@@ -111,7 +111,7 @@ if (( ${#validpgpkeys[@]} != 0 )); then
fi
# find files which should be under source control
-needsversioning=()
+needsversioning=(PKGBUILD)
for s in "${source[@]}"; do
[[ $s != *://* ]] && needsversioning+=("$s")
done