Skip to content

Commit

Permalink
support old git versions
Browse files Browse the repository at this point in the history
  • Loading branch information
titulebolide committed Dec 16, 2021
1 parent 0b42041 commit 349a8a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion btb_manager_telegram/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
)
Expand Down

0 comments on commit 349a8a5

Please sign in to comment.