We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fcb347b commit 179977aCopy full SHA for 179977a
1 file changed
py/py-version.sh
@@ -1,7 +1,7 @@
1
#!/bin/bash
2
3
# Note: git describe doesn't work if no tag is available
4
-git_tag="$(git describe --dirty 2> /dev/null || git rev-parse --short HEAD)"
+git_tag="$(git describe --dirty --always)"
5
git_hash="$(git rev-parse --short HEAD 2> /dev/null || echo unknown)"
6
git_files_are_clean=1
7
# Check if there are any modified files.
0 commit comments