aboutsummaryrefslogtreecommitdiff
path: root/publish/get_version.py
diff options
context:
space:
mode:
Diffstat (limited to 'publish/get_version.py')
-rw-r--r--publish/get_version.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/publish/get_version.py b/publish/get_version.py
index 0c19c2d..32f27ce 100644
--- a/publish/get_version.py
+++ b/publish/get_version.py
@@ -9,6 +9,6 @@ if os.path.exists(versionPath):
with open(versionPath, "r", encoding="utf8") as fp:
ver = fp.read()
else:
- ver = subprocess.run("git describe --tags --dirty", capture_output=True, text=True).stdout or "UNKNOWN-" + subprocess.run("git describe --always --dirty", capture_output=True, text=True).stdout or "UNKNOWN"
+ ver = subprocess.run(["git", "describe", "--tags", "--dirty"], capture_output=True, text=True).stdout or "UNKNOWN-" + subprocess.run(["git", "describe", "--always", "--dirty"], capture_output=True, text=True).stdout or "UNKNOWN"
print(ver.strip())