Skip to content

Commit

Permalink
nabweb: Upgrade page Version: always show commit even if no tags.
Browse files Browse the repository at this point in the history
  • Loading branch information
f-laurens authored and pguyot committed May 5, 2024
1 parent 60cb90a commit 1509c50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nabweb/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 1509c50

Please sign in to comment.