Skip to content
Snippets Groups Projects
Verified Commit 0f335d78 authored by Nico's avatar Nico
Browse files

scripts: fix update-gluon

We were expecting a checked out branch which obviously isn't always the
case. Instread try and find a tag.
parent e442e57f
No related branches found
No related tags found
No related merge requests found
...@@ -30,8 +30,8 @@ git -C "$gluon_path" fetch origin --tags ...@@ -30,8 +30,8 @@ git -C "$gluon_path" fetch origin --tags
git -C "$gluon_path" fetch upstream "$tag_to_update_to" git -C "$gluon_path" fetch upstream "$tag_to_update_to"
current_branch_name=$(git -C "$gluon_path" rev-parse --abbrev-ref HEAD) current_tag_name=$(git -C "$gluon_path" describe)
current_upstream_tag_name=${current_branch_name/-ffs/} current_upstream_tag_name=${current_tag_name/-ffs*/}
git -C "$gluon_path" checkout -b "$tag_to_update_to-ffs" git -C "$gluon_path" checkout -b "$tag_to_update_to-ffs"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment