diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-02-27 11:27:59 -0500 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2018-03-19 10:10:29 +0100 |
commit | 5d9a515002a485daa7b201cf251945ab430f3eab (patch) | |
tree | f34eb80e8e93a618cca614a1984b0bedc8523bed | |
parent | 63451fca13c75870e1703eb3e20584d91179aebc (diff) | |
download | seabios-5d9a515002a485daa7b201cf251945ab430f3eab.tar.gz |
build: Use git describe --always
Add --always flag to "git describe" command to get a build identifier
even if one checks out the repo with a depth parameter that prunes out
the last tagged version.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
(cherry picked from commit a3c93bd81df628a218b9363f13188367417baaec)
-rwxr-xr-x | scripts/buildversion.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/buildversion.py b/scripts/buildversion.py index 46928984..8875497c 100755 --- a/scripts/buildversion.py +++ b/scripts/buildversion.py @@ -36,7 +36,7 @@ def git_version(): if not os.path.exists('.git'): logging.debug("No '.git' file/directory found") return "" - ver = check_output("git describe --tags --long --dirty").strip() + ver = check_output("git describe --always --tags --long --dirty").strip() logging.debug("Got git version: %s" % (repr(ver),)) return ver |