mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 14:23:53 +00:00
Remove asterisks before branch name
This commit is contained in:
@@ -853,7 +853,8 @@ if (GIT_FOUND)
|
|||||||
)
|
)
|
||||||
string(REPLACE "\n" ";" git_branch_list "${git_branches}")
|
string(REPLACE "\n" ";" git_branch_list "${git_branches}")
|
||||||
foreach(git_branch_candidate IN ITEMS ${git_branch_list})
|
foreach(git_branch_candidate IN ITEMS ${git_branch_list})
|
||||||
string(STRIP "${git_branch_candidate}" git_branch_candidate_2)
|
string(REPLACE "*" "" git_branch_candidate_temp "${git_branch_candidate}")
|
||||||
|
string(STRIP "${git_branch_candidate_temp}" git_branch_candidate_2)
|
||||||
if (NOT git_branch_candidate_2 MATCHES "^HEAD$")
|
if (NOT git_branch_candidate_2 MATCHES "^HEAD$")
|
||||||
set(git_branch ${git_branch_candidate_2})
|
set(git_branch ${git_branch_candidate_2})
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user