mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-01 12:01:58 +00:00
Fixed strange error in revision.h generation [#METR-9800].
This commit is contained in:
parent
12f520e117
commit
ba3a0000ae
@ -5,8 +5,7 @@ echo -n "#define REVISION " >> ${CMAKE_CURRENT_BINARY_DIR}/src/revision.h
|
|||||||
|
|
||||||
cd ${CMAKE_CURRENT_SOURCE_DIR};
|
cd ${CMAKE_CURRENT_SOURCE_DIR};
|
||||||
|
|
||||||
git rev-parse --is-inside-work-tree &> /dev/null
|
if (git rev-parse --is-inside-work-tree >/dev/null 2>&1)
|
||||||
if [ $? -eq 0 ]
|
|
||||||
then
|
then
|
||||||
# GIT
|
# GIT
|
||||||
( git describe --tags || echo 1 ) | cut -d "-" -f 1 >> ${CMAKE_CURRENT_BINARY_DIR}/src/revision.h;
|
( git describe --tags || echo 1 ) | cut -d "-" -f 1 >> ${CMAKE_CURRENT_BINARY_DIR}/src/revision.h;
|
||||||
|
Loading…
Reference in New Issue
Block a user