aboutsummaryrefslogtreecommitdiffstats
path: root/klippy
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2018-02-26 21:50:05 -0500
committerKevin O'Connor <kevin@koconnor.net>2018-02-26 21:50:05 -0500
commit656cb2c417fef955dba5b9777b173283eafb4700 (patch)
treef8e75e95dcc73f8b75e7d2cb30d3c5400b3d0588 /klippy
parent239c1ad5c9c2dac0b4e1853154bcb21e0084cfab (diff)
downloadkutter-656cb2c417fef955dba5b9777b173283eafb4700.tar.gz
kutter-656cb2c417fef955dba5b9777b173283eafb4700.tar.xz
kutter-656cb2c417fef955dba5b9777b173283eafb4700.zip
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 'klippy')
-rw-r--r--klippy/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/util.py b/klippy/util.py
index a8add833..03c2083d 100644
--- a/klippy/util.py
+++ b/klippy/util.py
@@ -57,7 +57,7 @@ def get_git_version():
if not os.path.exists(gitdir):
logging.debug("No '.git' file/directory found")
return "?"
- prog = "git -C %s describe --tags --long --dirty" % (gitdir,)
+ prog = "git -C %s describe --always --tags --long --dirty" % (gitdir,)
try:
process = subprocess.Popen(shlex.split(prog), stdout=subprocess.PIPE)
output = process.communicate()[0]