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()