mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
added fetch tags in create_revision.sh
This commit is contained in:
parent
64ca649a27
commit
892cc08ece
@ -8,6 +8,7 @@ cd ${CMAKE_CURRENT_SOURCE_DIR};
|
||||
if (git rev-parse --is-inside-work-tree &> /dev/null)
|
||||
then
|
||||
# GIT
|
||||
git fetch --tags;
|
||||
( git describe --tags || echo 1 ) | cut -d "-" -f 1 >> ${CMAKE_CURRENT_BINARY_DIR}/src/revision.h;
|
||||
else
|
||||
#SVN
|
||||
|
Loading…
Reference in New Issue
Block a user