libcommon: Support for invoking from /tmp. [#METRIQA-600]

This commit is contained in:
Vladimir Chebotarev 2016-12-08 15:12:54 +04:00 committed by GitHub
parent 050fc63694
commit b72ecc383d

View File

@ -8,6 +8,7 @@ function get_revision {
BASEDIR=`dirname "$0"`
CURDIR=`pwd`
cd ${BASEDIR}
git rev-parse --git-dir 2>/dev/null || cd ${CURDIR}
git fetch --tags
git tag | tag_filter | tail -1 | sed 's/^v1\.1\.\(.*\)-testing$/\1/'
cd ${CURDIR}