mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
libcommon: Extract revision from source directory. [#METR-21516]
This commit is contained in:
parent
017a32c3ad
commit
93c805c7f5
@ -5,6 +5,10 @@ function tag_filter {
|
||||
|
||||
# Get last revision number
|
||||
function get_revision {
|
||||
BASEDIR=`dirname "$0"`
|
||||
CURDIR=`pwd`
|
||||
cd ${BASEDIR}
|
||||
git fetch --tags
|
||||
git tag | tag_filter | tail -1 | sed 's/^v1\.1\.\(.*\)-testing$/\1/'
|
||||
cd ${CURDIR}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user