From 751a979797d23e51b04ef167b383e7913a381831 Mon Sep 17 00:00:00 2001 From: foxfire52 Date: Sat, 26 Oct 2024 15:23:11 +0200 Subject: Update version.py --- g4f/version.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'g4f') 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: -- cgit v1.2.3