优化版本号显示
This commit is contained in:
parent
5ee4c50314
commit
964088bab3
3 changed files with 9 additions and 9 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue