优化版本号显示

This commit is contained in:
zhbaor 2024-11-22 16:47:34 +08:00
parent 5ee4c50314
commit 964088bab3
3 changed files with 9 additions and 9 deletions

View file

@ -146,7 +146,8 @@ def git_rev(repo):
with head_path.open("r") as fd:
commit = fd.read().strip()
return commit
branch_name = head_ref.split("/")[-1]
return branch_name, commit
def main():