From: Kevin O'Connor Date: Tue, 27 Feb 2018 16:27:59 +0000 (-0500) Subject: build: Use git describe --always X-Git-Tag: rel-1.12.0~35 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=a3c93bd81df628a218b9363f13188367417baaec;p=seabios.git 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 --- diff --git a/scripts/buildversion.py b/scripts/buildversion.py index 4692898..8875497 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