diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-11-25 17:01:10 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-11-25 17:01:10 +0300 |
commit | d36aecab66bf9279bf5c7e1fef069de5ae9f9576 (patch) | |
tree | 2d6fd4d6410d4a7d45827effa4764f6d5650584d | |
parent | 3f330b5b0b95b61f3d8cf15e0b6860d4439975d9 (diff) | |
download | rspamd-d36aecab66bf9279bf5c7e1fef069de5ae9f9576.tar.gz rspamd-d36aecab66bf9279bf5c7e1fef069de5ae9f9576.zip |
Fix git id detection.
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 806299ab0..ac401dd58 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -741,7 +741,7 @@ IF(HG) # Maybe this is git copy FIND_PROGRAM(GIT "git") IF(GIT) - EXECUTE_PROCESS(COMMAND "${GIT}" branch -v OUTPUT_VARIABLE GIT_ID ERROR_QUIET) + EXECUTE_PROCESS(COMMAND "${GIT}" --git-dir=${CMAKE_SOURCE_DIR}/.git branch -v OUTPUT_VARIABLE GIT_ID ERROR_QUIET) IF(GIT_ID) STRING(REGEX REPLACE "^. [0-9a-z]+ ([0-9a-f]+) .*" \\1 ID "${GIT_ID}") ENDIF(GIT_ID) @@ -761,7 +761,7 @@ ELSE(HG) # Maybe this is git copy FIND_PROGRAM(GIT "git") IF(GIT) - EXECUTE_PROCESS(COMMAND "${GIT}" branch -v OUTPUT_VARIABLE GIT_ID ERROR_QUIET) + EXECUTE_PROCESS(COMMAND "${GIT}" --git-dir=${CMAKE_SOURCE_DIR}/.git branch -v OUTPUT_VARIABLE GIT_ID ERROR_QUIET) IF(GIT_ID) STRING(REGEX REPLACE "^. [0-9a-z]+ ([0-9a-f]+) .*" \\1 ID "${GIT_ID}") ENDIF(GIT_ID) |