From: tobtoht Date: Fri, 6 Jan 2023 21:14:48 +0000 (+0100) Subject: guix: fix githash X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=4df5f6b1793fdcd2cd595bf5a83fb88697482deb;p=gamesguru%2Ffeather.git guix: fix githash --- diff --git a/contrib/guix/libexec/build.sh b/contrib/guix/libexec/build.sh index 4bc23a84..0889551d 100755 --- a/contrib/guix/libexec/build.sh +++ b/contrib/guix/libexec/build.sh @@ -230,7 +230,7 @@ GIT_ARCHIVE="${DIST_ARCHIVE_BASE}/${DISTNAME}.tar.gz" # Create the source tarball if not already there if [ ! -e "$GIT_ARCHIVE" ]; then mkdir -p "$(dirname "$GIT_ARCHIVE")" - echo "$(git_head_version)" > githash.txt + git rev-parse --short=12 HEAD > githash.txt ( git ls-files --recurse-submodules ; echo "githash.txt" ) | cat | tar --transform 's,^,$DISTNAME/,' -caf ${GIT_ARCHIVE} -T- sha256sum "$GIT_ARCHIVE" fi