Skip to content

Commit 0f4d6ce

Browse files
committed
Remove branch from version display string
It's still in the details, but this won't be useful for deployed builds and it just takes space. Also, when we don't get a branch name, identify the "buid "branch" as `CI`.
1 parent 38ee020 commit 0f4d6ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/scripts/version.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ def main():
3434
backend = top / "backend"
3535
version = (backend / "VERSION").read_text().strip()
3636
sha = getone(["git", "rev-parse", "--short", "HEAD"])
37-
branch = getone(["git", "branch", "--show-current"], if_none="HEAD")
38-
display = f"v{version}-{sha} ({branch})"
37+
branch = getone(["git", "branch", "--show-current"], if_none="CI")
38+
display = f"v{version}-{sha}"
3939
print(f"VERSION: {display}")
4040
log = do(["git", "log", "-n10", "--format=%h###%aN###%aE###%aI###%s"])
4141
fields = ("sha", "author", "email", "date", "title")

0 commit comments

Comments
 (0)