summaryrefslogtreecommitdiffstats
path: root/g4f
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--g4f/version.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/g4f/version.py b/g4f/version.py
index eff72303..403ce370 100644
--- a/g4f/version.py
+++ b/g4f/version.py
@@ -79,7 +79,8 @@ class VersionUtils:
if version:
return version
- # Read from git repository try:
+ # Read from git repository
+ try:
command = ["git", "describe", "--tags", "--abbrev=0"]
return check_output(command, text=True, stderr=PIPE).strip()
except CalledProcessError: