From cbc91b1095edf4aec02bddeb7d07cd64c17c2aee Mon Sep 17 00:00:00 2001 From: Michael Sprengel Date: Fri, 8 Dec 2023 17:04:48 +0100 Subject: [PATCH] Use the git commit instead of head (#58) --- container/bin/build_source | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/container/bin/build_source b/container/bin/build_source index 2331c94..09cb6b1 100755 --- a/container/bin/build_source +++ b/container/bin/build_source @@ -248,7 +248,7 @@ get_version() ( if [ -z $version ]; then package_version=$(get_upstream_version $source) git_commit_hash=$(git -C /input rev-parse HEAD) - git_branch=$(git -C /input name-rev --name-only --refs="refs/heads/*" HEAD) + git_branch=$(git -C /input name-rev --name-only --refs="refs/heads/*" "$git_commit_hash") git_tags=$(git -C /input tag) # No version has been provided. Check if there is already a gardenlinux0 version.