aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2018-02-27 11:27:59 -0500
committerKevin O'Connor <kevin@koconnor.net>2018-02-27 11:27:59 -0500
commita3c93bd81df628a218b9363f13188367417baaec (patch)
treea8717f338f95d9a21e768ae79f14cb9f7d5633ea /scripts
parent42812e062a77b27b0544c8e0d46d206afc3b2fae (diff)
downloadseabios-hppa-a3c93bd81df628a218b9363f13188367417baaec.zip
seabios-hppa-a3c93bd81df628a218b9363f13188367417baaec.tar.gz
seabios-hppa-a3c93bd81df628a218b9363f13188367417baaec.tar.bz2
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>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/buildversion.py2
1 files changed, 1 insertions, 1 deletions
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