From 656cb2c417fef955dba5b9777b173283eafb4700 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 26 Feb 2018 21:50:05 -0500 Subject: 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 --- klippy/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'klippy/util.py') 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] -- cgit v1.2.3-70-g09d2