summaryrefslogtreecommitdiffstats
path: root/scripts/repo-info.sh
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2015-08-25 14:26:59 -0700
committerJohn Stebbins <[email protected]>2015-08-25 14:26:59 -0700
commit9d0a09a7429676785afc89ac565892f2ed9bfb3a (patch)
tree6ba7a07757b677e6b07104682c4ec774ff0b96ab /scripts/repo-info.sh
parent4889bc95883dd2cb0eb679d381d15385b930bcfa (diff)
build: fix errors in last commit
Thanks BradleyS
Diffstat (limited to 'scripts/repo-info.sh')
-rwxr-xr-xscripts/repo-info.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/repo-info.sh b/scripts/repo-info.sh
index 72d974d04..675a2cf62 100755
--- a/scripts/repo-info.sh
+++ b/scripts/repo-info.sh
@@ -43,7 +43,7 @@ if [[ ${TAG} ]]; then
else
TAG=$(${GIT_EXE} describe $(${GIT_EXE} rev-list --tags --max-count=1))
if [[ ${TAG} ]]; then
- REV=$(${GIT_EXE} rev-list $(${GIT_EXE} merge-base 0.10.2 HEAD).. --count)
+ REV=$(${GIT_EXE} rev-list $(${GIT_EXE} merge-base ${TAG} HEAD).. --count)
else
REV=$(${GIT_EXE} rev-list HEAD --count)
fi
@@ -57,7 +57,7 @@ fi
DATE=$(${GIT_EXE} log -1 --format="format:%ai")
# Output
-# Only write tag and rev if they exist. A fresh clone currently has no tags.
+# Only write tag and rev if they exist.
echo "URL=${URL}"
echo "HASH=${HASH}"
if [[ ${TAG} ]]; then echo "TAG=${TAG}"; fi