]> source.dussan.org Git - rspamd.git/commitdiff
Remove git id support as it is bad actually.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 8 Aug 2013 13:50:10 +0000 (14:50 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 8 Aug 2013 13:50:10 +0000 (14:50 +0100)
CMakeLists.txt

index a2518330567542de0f54be913815cd0252c09ca9..8a87aff71d24af5d19fde2932869a3678917ee7a 100644 (file)
@@ -998,15 +998,6 @@ ELSE(HG)
             STRING(REGEX MATCH "node: [0-9a-z]+" _tmp "${HG_ID}")
             STRING(SUBSTRING "${_tmp}" 6 12 ID)
         ENDIF(HG_ID)
-    ELSE(HG_ARCH)
-       # Maybe this is git copy
-       FIND_PROGRAM(GIT "git")
-       IF(GIT)
-               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)
-       ENDIF(GIT)
     ENDIF(HG_ARCH)
 ENDIF(HG)