fix: show only current branch in version display
All checks were successful
CI / test (push) Successful in 47s
All checks were successful
CI / test (push) Successful in 47s
git branch lists all branches; replace with git branch --show-current
This commit is contained in:
@@ -41,8 +41,8 @@ def app_version():
|
||||
describe = minimal_env_cmd(['git', 'describe', '--tags', '--always'])
|
||||
git_revision = describe.strip().decode('ascii')
|
||||
|
||||
branch = minimal_env_cmd(['git', 'branch'])
|
||||
git_branch = branch.strip().decode('ascii').replace('* ', '')
|
||||
branch = minimal_env_cmd(['git', 'branch', '--show-current'])
|
||||
git_branch = branch.strip().decode('ascii')
|
||||
|
||||
subst_list.update({
|
||||
'branch': git_branch,
|
||||
|
||||
Reference in New Issue
Block a user