commit | 349e4c4a2f816127cbf5c8a3e43f1b089cba5baa | [log] [tgz] |
---|---|---|
author | Damien George <damien.p.george@gmail.com> | Sat May 03 21:15:32 2014 +0100 |
committer | Damien George <damien.p.george@gmail.com> | Sat May 03 21:15:32 2014 +0100 |
tree | 18a27f02f6e26bb85acd5b01644b29a0ac18c5e9 | |
parent | 6ec835dfef90a2f940a24b126cba8e3d8ede1ef2 [diff] [blame] |
py: Add --dirty flag to git describe.
diff --git a/py/py-version.sh b/py/py-version.sh index 5306338..42474ef 100755 --- a/py/py-version.sh +++ b/py/py-version.sh
@@ -1,6 +1,6 @@ #!/bin/bash -git_tag="$(git describe || echo unknown)" +git_tag="$(git describe --dirty || echo unknown)" git_hash="$(git rev-parse --short HEAD 2> /dev/null || echo unknown)" git_files_are_clean=1 # Check if there are any modified files.