Skip to content

Commit

Permalink
fix git problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Jirka Vrba committed Jul 28, 2018
1 parent 7111869 commit 7e6fae2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion powerline-zsh.py
Expand Up @@ -199,7 +199,7 @@ def add_git_segment(powerline, cwd):
p = subprocess.Popen(['git', 'symbolic-ref', '-q', 'HEAD'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
out, err = p.communicate()

if 'Not a git repo' in err.decode(encoding):
if 'not a git repo' in err.decode(encoding).lower():
return False

if out:
Expand Down

0 comments on commit 7e6fae2

Please sign in to comment.