Merge branch 'fix-remotes-HEAD' into 'master'

Don't let remote HEAD show up as HEAD in version info, use actual branch name

See merge request KartKrew/Kart!1080
This commit is contained in:
Chromatian Keiske 2023-03-25 05:55:03 +00:00
commit aab248b25c

View file

@ -26,7 +26,7 @@ function(git_current_branch variable)
# If a detached head, a ref could still be resolved.
if("${output}" STREQUAL "")
_git_command(describe --all --exact-match)
_git_command(describe --all --exact-match --exclude */HEAD)
# Get the ref, in the form heads/master or
# remotes/origin/master so isolate the final part.