From 4df5f6b1793fdcd2cd595bf5a83fb88697482deb Mon Sep 17 00:00:00 2001 From: tobtoht Date: Fri, 6 Jan 2023 22:14:48 +0100 Subject: [PATCH] guix: fix githash --- contrib/guix/libexec/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.52.0