From ab55cf79bbb281af17cd289f6cfb1ba21302e4d4 Mon Sep 17 00:00:00 2001 From: Astounds Date: Sun, 3 May 2026 12:36:32 -0500 Subject: [PATCH] fix: show only current branch in version display git branch lists all branches; replace with git branch --show-current --- youtube/get_app_version/get_app_version.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/youtube/get_app_version/get_app_version.py b/youtube/get_app_version/get_app_version.py index a73b857..aa87623 100644 --- a/youtube/get_app_version/get_app_version.py +++ b/youtube/get_app_version/get_app_version.py @@ -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,