diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-05-05 21:27:22 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-05-05 21:28:12 +0300 |
commit | 179977a0da686476c44e04fc1075ca1c22fd0d7c (patch) | |
tree | 3dc46352ad2f7cbef4abee8ce2d2a6354ac2c387 /py/py-version.sh | |
parent | fcb347b90addb786d11b7abeff8b3938fa6b030d (diff) | |
download | micropython-179977a0da686476c44e04fc1075ca1c22fd0d7c.tar.gz micropython-179977a0da686476c44e04fc1075ca1c22fd0d7c.zip |
py-version.sh: Use --always option of git describe.
Diffstat (limited to 'py/py-version.sh')
-rwxr-xr-x | py/py-version.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/py-version.sh b/py/py-version.sh index daa25489e7..93b8d7a1fd 100755 --- a/py/py-version.sh +++ b/py/py-version.sh @@ -1,7 +1,7 @@ #!/bin/bash # Note: git describe doesn't work if no tag is available -git_tag="$(git describe --dirty 2> /dev/null || git rev-parse --short HEAD)" +git_tag="$(git describe --dirty --always)" git_hash="$(git rev-parse --short HEAD 2> /dev/null || echo unknown)" git_files_are_clean=1 # Check if there are any modified files. |