]> Nutra Git (v1) - gamesguru/feather.git/commitdiff
guix: fix githash
authortobtoht <tob@featherwallet.org>
Fri, 6 Jan 2023 21:14:48 +0000 (22:14 +0100)
committertobtoht <tob@featherwallet.org>
Fri, 6 Jan 2023 21:14:48 +0000 (22:14 +0100)
contrib/guix/libexec/build.sh

index 4bc23a8417c5559e8f4c0605e8d4e6c713a61e6b..0889551db83ca08b54921e495f54ce2327d22fd6 100755 (executable)
@@ -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