mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00: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:
parent
3d6040615a
commit
b9cf2e37f3
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue