From 1509c50e158364c757327fed01aa38e275e575b7 Mon Sep 17 00:00:00 2001 From: Fabrice Laurens Date: Sun, 15 Oct 2023 13:09:57 +0200 Subject: [PATCH] nabweb: Upgrade page Version: always show commit even if no tags. --- nabweb/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nabweb/views.py b/nabweb/views.py index 36939dd2..2a5ee49f 100644 --- a/nabweb/views.py +++ b/nabweb/views.py @@ -599,8 +599,8 @@ def do_get_repository_info(repository, relpath): info["local_commits_count"] = int(local_commits_count) info["tag"] = ( os.popen( - f"git -C {repo_dir} describe --long 2>/dev/null || " - f"git -C {repo_dir} describe --long --tags 2>/dev/null" + f"git -C {repo_dir} describe --long --tags --always " + f"2>/dev/null" ) .read() .strip()