Skip to content

Commit

Permalink
Use the git commit instead of head (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
nanory authored Dec 8, 2023
1 parent ae16280 commit cbc91b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion container/bin/build_source
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit cbc91b1

Please sign in to comment.