From be5f54c95cbbcf46598e23aa456075cbb26806c0 Mon Sep 17 00:00:00 2001 From: Christian Heusel Date: Wed, 14 Jun 2023 00:25:03 +0200 Subject: 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 Signed-off-by: Levente Polyak --- src/commitpkg.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2