diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2019-12-05 08:32:30 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-12-05 08:32:30 +0000 |
commit | ec96c604e95993bdfce378cf6494325d653adb29 (patch) | |
tree | 52c5791d74ac3ff48a190282e3ec624c0996db8b | |
parent | bb0324e39824fc0de14fd4b9ad539849ff27c619 (diff) | |
download | abuild-ec96c604e95993bdfce378cf6494325d653adb29.tar.gz abuild-ec96c604e95993bdfce378cf6494325d653adb29.tar.bz2 abuild-ec96c604e95993bdfce378cf6494325d653adb29.tar.xz abuild-ec96c604e95993bdfce378cf6494325d653adb29.zip |
abuild: fix building without git
fixes #9981
-rw-r--r-- | abuild.in | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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)" |