mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 16:31:07 +08:00
Supply the source directory as working directory when launching Git commands. Should fix retrieving the Git hash on the build machines.
This commit is contained in:
@@ -29,6 +29,7 @@ if(EXISTS "${REACTOS_SOURCE_DIR}/.git")
|
||||
if(GIT_FOUND)
|
||||
execute_process(
|
||||
COMMAND "${GIT_EXECUTABLE}" rev-parse HEAD
|
||||
WORKING_DIRECTORY ${REACTOS_SOURCE_DIR}
|
||||
OUTPUT_VARIABLE GIT_COMMIT_HASH
|
||||
RESULT_VARIABLE GIT_CALL_RESULT
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
@@ -39,6 +40,7 @@ if(EXISTS "${REACTOS_SOURCE_DIR}/.git")
|
||||
|
||||
execute_process(
|
||||
COMMAND "${GIT_EXECUTABLE}" describe
|
||||
WORKING_DIRECTORY ${REACTOS_SOURCE_DIR}
|
||||
OUTPUT_VARIABLE GIT_DESCRIBE_REVISION
|
||||
RESULT_VARIABLE GIT_CALL_RESULT
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
|
||||
Reference in New Issue
Block a user