Skip to content

Commit

Permalink
Check error string with lower case
Browse files Browse the repository at this point in the history
From git 2.17.0, it appears that the error string changes.
olivierverdier#117
  • Loading branch information
mttrs committed Apr 29, 2018
1 parent 357bbb3 commit ca16118
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitstatus.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

error_string = error.decode('utf-8')

if 'fatal: Not a git repository' in error_string:
if 'fatal: not a git repository' in error_string.lower():
sys.exit(0)

branch = branch.decode("utf-8").strip()[11:]
Expand Down

0 comments on commit ca16118

Please sign in to comment.