Skip to content
Snippets Groups Projects
Commit b4191845 authored by James R.'s avatar James R.
Browse files

cmake/Comptime.cmake: exclude remote refs HEAD from current branch search

remotes/origin/HEAD is valid, exists in my repo and I do
not know why but it makes checking out origin/master show
up as HEAD in game so KILL.
parent 312e8471
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
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