summaryrefslogtreecommitdiff
path: root/get-version
diff options
context:
space:
mode:
Diffstat (limited to 'get-version')
-rwxr-xr-xget-version6
1 files changed, 3 insertions, 3 deletions
diff --git a/get-version b/get-version
index 6c39065bd..6ae9c0b1d 100755
--- a/get-version
+++ b/get-version
@@ -22,9 +22,9 @@ if [ -f .dist-version ]; then
# Get the version from the file distributed in the tarball.
version=$(cat .dist-version)
elif [ -d .git ]; then
- # Get the version from the git repository. Since tags can't contain
- # tildes, we use underscore instead. Reverse that switch here.
- version=$(git describe --abbrev=4 HEAD 2>/dev/null | tr _ ~)
+ # Get the version from the git repository. Since tags cannot contain colons
+ # or tildes, we use percent and underscore instead. Reverse that switch here.
+ version=$(git describe --abbrev=4 HEAD 2>/dev/null | tr %_ :~)
# Check if we are on a dirty checkout.
git update-index --refresh -q >/dev/null