Skip to content

Commit 179977a

Browse files
committed
py-version.sh: Use --always option of git describe.
1 parent fcb347b commit 179977a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

py/py-version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# 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)"
4+
git_tag="$(git describe --dirty --always)"
55
git_hash="$(git rev-parse --short HEAD 2> /dev/null || echo unknown)"
66
git_files_are_clean=1
77
# Check if there are any modified files.

0 commit comments

Comments
 (0)