Skip to content

Commit

Permalink
Try another method of obtaining the branch
Browse files Browse the repository at this point in the history
  • Loading branch information
nanory committed Dec 12, 2023
1 parent cbc91b1 commit 16ff7c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion container/bin/build_source
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,8 @@ 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/*" "$git_commit_hash")
git_branches=$(git -C /input branch -r --contains "$git_commit_hash")
git_branch=${git_branches##*/}
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 16ff7c9

Please sign in to comment.