Merge pull request #5 from vikulin/future

Future merge
This commit is contained in:
Vadym Vikulin 2021-06-06 12:25:47 +03:00 committed by GitHub
commit 86829727b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 12 additions and 106 deletions

View file

@ -1,8 +1,11 @@
#!/bin/sh
if [[ $* == *--bare* ]]; then
case "$*" in
*--bare*)
# Remove the "v" prefix
git describe --tags --match="v[0-9]*\.[0-9]*\.[0-9]*" | cut -c 2-
else
;;
*)
git describe --tags --match="v[0-9]*\.[0-9]*\.[0-9]*"
fi
;;
esac