From 9e07fac5ec3ebaed3a213fb910998aaafd0a34e6 Mon Sep 17 00:00:00 2001 From: Terry Geng Date: Thu, 31 Dec 2020 17:52:28 +0800 Subject: [PATCH] fix: snapshot version not based on newest tag --- util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.py b/util.py index cd9208e..bfec1ed 100644 --- a/util.py +++ b/util.py @@ -467,7 +467,7 @@ def get_snapshot_version(): ver = "unknown" if os.path.exists(os.path.join(root_dir, ".git")): try: - ret = subprocess.check_output(["git", "describe"]).strip() + ret = subprocess.check_output(["git", "describe", "--tags"]).strip() ver = ret.decode("utf-8") except FileNotFoundError: try: