summaryrefslogtreecommitdiffstats
path: root/g4f
diff options
context:
space:
mode:
authorfoxfire52 <foxfire52@virgilio.it>2024-10-26 15:23:11 +0200
committerGitHub <noreply@github.com>2024-10-26 15:23:11 +0200
commit751a979797d23e51b04ef167b383e7913a381831 (patch)
treec3599de2a1eb287349d90f8a2a06d258cbe50902 /g4f
parentRemove patch version.py (diff)
downloadgpt4free-751a979797d23e51b04ef167b383e7913a381831.tar
gpt4free-751a979797d23e51b04ef167b383e7913a381831.tar.gz
gpt4free-751a979797d23e51b04ef167b383e7913a381831.tar.bz2
gpt4free-751a979797d23e51b04ef167b383e7913a381831.tar.lz
gpt4free-751a979797d23e51b04ef167b383e7913a381831.tar.xz
gpt4free-751a979797d23e51b04ef167b383e7913a381831.tar.zst
gpt4free-751a979797d23e51b04ef167b383e7913a381831.zip
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: