diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-02-27 11:27:59 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2018-02-27 11:27:59 -0500 |
commit | a3c93bd81df628a218b9363f13188367417baaec (patch) | |
tree | a8717f338f95d9a21e768ae79f14cb9f7d5633ea | |
parent | 42812e062a77b27b0544c8e0d46d206afc3b2fae (diff) | |
download | seabios-a3c93bd81df628a218b9363f13188367417baaec.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>
-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 |