avoid --exclude with git-describe

The `--exclude` flag is not supported by older-but-still-used version
of Git.

original commit: a5a594f7c3f71d17d2e55ed50463b92515de02dc
This commit is contained in:
Matthew Flatt 2019-12-27 04:58:56 -06:00
parent 6352009def
commit 7675d58fb2

View File

@ -1,6 +1,6 @@
#!/bin/sh
if [ -d ../../.git ]; then
git describe --always --exclude='*' --abbrev=40 --dirty
git describe --always --match='' --abbrev=40 --dirty
echo 'git'
elif [ -d ../../.hg ]; then
DIRTY="$(hg status -n --color never --pager never | head -1)"