fix: show only current branch in version display
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:
2026-05-03 12:36:32 -05:00
parent 8d66143c90
commit ab55cf79bb

View File

@@ -41,8 +41,8 @@ def app_version():
describe = minimal_env_cmd(['git', 'describe', '--tags', '--always']) describe = minimal_env_cmd(['git', 'describe', '--tags', '--always'])
git_revision = describe.strip().decode('ascii') git_revision = describe.strip().decode('ascii')
branch = minimal_env_cmd(['git', 'branch']) branch = minimal_env_cmd(['git', 'branch', '--show-current'])
git_branch = branch.strip().decode('ascii').replace('* ', '') git_branch = branch.strip().decode('ascii')
subst_list.update({ subst_list.update({
'branch': git_branch, 'branch': git_branch,