From 349a8a553a60dae1c7038d8a7984e2662e3fbd95 Mon Sep 17 00:00:00 2001 From: titulebolide Date: Thu, 16 Dec 2021 23:38:56 +0100 Subject: [PATCH] support old git versions --- btb_manager_telegram/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") )