diff --git a/install b/install index 6afa16d..2578fe3 100755 --- a/install +++ b/install @@ -14,7 +14,7 @@ export CODEBUILD_GIT_AUTHOR=`git log -1 --pretty=%an` export CODEBUILD_GIT_AUTHOR_EMAIL=`git log -1 --pretty=%ae` export CODEBUILD_GIT_COMMIT=`git log -1 --pretty=%H` export CODEBUILD_GIT_SHORT_COMMIT=`git log -1 --pretty=%h` -export CODEBUILD_GIT_TAG=`git describe --tags --abbrev=0` +export CODEBUILD_GIT_TAG=`git describe --tags --exact-match 2>/dev/null` export CODEBUILD_PULL_REQUEST=false if [[ $CODEBUILD_GIT_BRANCH == pr-* ]] ; then