aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2018-02-27 11:27:59 -0500
committerGerd Hoffmann <kraxel@redhat.com>2018-03-19 10:10:29 +0100
commit5d9a515002a485daa7b201cf251945ab430f3eab (patch)
treef34eb80e8e93a618cca614a1984b0bedc8523bed
parent63451fca13c75870e1703eb3e20584d91179aebc (diff)
downloadseabios-5d9a515002a485daa7b201cf251945ab430f3eab.zip
seabios-5d9a515002a485daa7b201cf251945ab430f3eab.tar.gz
seabios-5d9a515002a485daa7b201cf251945ab430f3eab.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> (cherry picked from commit a3c93bd81df628a218b9363f13188367417baaec)
-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