Commit 7267f097 authored by Niels Dekker's avatar Niels Dekker
Browse files

WIP: Hopefully fixed "fatal: Not a git repository (or any of the parent...

WIP: Hopefully fixed "fatal: Not a git repository (or any of the parent directories): .git" at https://stingray.researchlumc.nl/job/SuperElastix/job/SuperElastix/job/SELX-126-Make-compilation-logs-public/25/console (4th attempt)
parent 3e714d5b
......@@ -27,12 +27,12 @@ find_package( Git REQUIRED )
execute_process (
COMMAND ${GIT_EXECUTABLE} rev-parse --short HEAD
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
WORKING_DIRECTORY ${CTEST_SOURCE_DIRECTORY}
OUTPUT_VARIABLE SELX_GIT_COMMIT_SHA
)
execute_process (
COMMAND ${GIT_EXECUTABLE} name-rev --name-only HEAD
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
WORKING_DIRECTORY ${CTEST_SOURCE_DIRECTORY}
OUTPUT_VARIABLE SELX_GIT_BRANCH_NAME
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment