diff --git a/CMakeLists.txt b/CMakeLists.txt index 35414abec2f009c93399d63574c94ea303ebb82d..033cc1dbb2b62379c62fe3e9d304b2da8a74e50a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -52,7 +52,7 @@ if(DEFINED ENV{CI_COMMIT_REF_NAME}) else() execute_process( #COMMAND git rev-parse --symbolic-full-name --abbrev-ref HEAD - COMMAND bash -c "git status | grep origin | sed -e 's/.*origin\\///' -e 's/[^a-zA-Z].*//'" + COMMAND bash -c "git status | grep origin | sed -e s/.*origin\\/// -e s/[^a-zA-Z].*//" WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} OUTPUT_VARIABLE GIT_BRANCH OUTPUT_STRIP_TRAILING_WHITESPACE)