Skip to content

Commit

Permalink
Find another way to determine the git branch
Browse files Browse the repository at this point in the history
  • Loading branch information
nanory committed Dec 8, 2023
1 parent 2591dbd commit a143bb2
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 branch --show-current)
git_branch=$(git -C /input name-rev --name-only --refs="refs/heads/*" HEAD)
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 a143bb2

Please sign in to comment.