diff options
author | foxfire52 <foxfire52@virgilio.it> | 2024-10-26 15:23:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-26 15:23:11 +0200 |
commit | 751a979797d23e51b04ef167b383e7913a381831 (patch) | |
tree | c3599de2a1eb287349d90f8a2a06d258cbe50902 /g4f | |
parent | Remove patch version.py (diff) | |
download | gpt4free-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 'g4f')
-rw-r--r-- | g4f/version.py | 3 |
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: |