aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/get_app_version/get_app_version.py
diff options
context:
space:
mode:
Diffstat (limited to 'youtube/get_app_version/get_app_version.py')
-rw-r--r--youtube/get_app_version/get_app_version.py4
1 files 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,