diff --git a/btb_manager_telegram/utils.py b/btb_manager_telegram/utils.py index a4ea9368..2c480147 100644 --- a/btb_manager_telegram/utils.py +++ b/btb_manager_telegram/utils.py @@ -200,7 +200,7 @@ def is_btb_bot_update_available(): try: subprocess.run(["git", "remote", "update", "origin"]) branch = ( - subprocess.check_output(["git", "branch", "--show-current"]) + subprocess.check_output(['git', 'rev-parse', '--abbrev-ref', 'HEAD']) .decode() .rstrip("\n") )