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,