From ec96c604e95993bdfce378cf6494325d653adb29 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 5 Dec 2019 08:32:30 +0000 Subject: abuild: fix building without git fixes #9981 --- abuild.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/abuild.in b/abuild.in index 5654d8f..c79596b 100644 --- a/abuild.in +++ b/abuild.in @@ -105,6 +105,10 @@ want_check() { } set_source_date() { + # dont error out if APKBUILD is not in git + if ! $git rev-parse --show-toplevel >/dev/null 2>&1; then + git=true + fi # set time stamp for reproducible builds if [ -z "$ABUILD_LAST_COMMIT" ]; then export ABUILD_LAST_COMMIT="$(git_last_commit)$(git_dirty)" -- cgit v1.2.3