aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/get_app_version/get_app_version.py
diff options
context:
space:
mode:
authorAstounds <kirito@disroot.org>2026-05-03 12:36:32 -0500
committerAstounds <kirito@disroot.org>2026-05-03 12:36:32 -0500
commitab55cf79bbb281af17cd289f6cfb1ba21302e4d4 (patch)
tree3a694800f28a55e12a3c8b092e537fcdd39a598c /youtube/get_app_version/get_app_version.py
parent8d66143c90c4b86e8ec8dfed67753bef2abf2114 (diff)
downloadyt-local-ab55cf79bbb281af17cd289f6cfb1ba21302e4d4.tar.lz
yt-local-ab55cf79bbb281af17cd289f6cfb1ba21302e4d4.tar.xz
yt-local-ab55cf79bbb281af17cd289f6cfb1ba21302e4d4.zip
fix: show only current branch in version display
git branch lists all branches; replace with git branch --show-current
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,