-
Notifications
You must be signed in to change notification settings - Fork 395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
not working check git in folder #127
Comments
@madmandarin take a look on https://github.com/starcraftman/zsh-git-prompt |
I had the same issue when switching from Ubuntu 14.04 to Ubuntu 18.04. I have solved it manually on my computer. It seems git has changed the error message displayed when calling if 'fatal: Not a git repository' in error_string:
sys.exit(0) I have used a regexp with a the argument to ignore case to replace the inclusion check: if re.search(r'fatal: not a git repository', error_string, re.IGNORECASE):
sys.exit(0) |
Solves olivierverdier#127 (on Ubuntu 18.04 at least
in all folder i have "(:|✔)"
fix this change
if [ -n "$__CURRENT_GIT_STATUS" ]
toif [ -n "$__CURRENT_GIT_STATUS" ] && [ "$GIT_BRANCH" != ":" ]
git version 2.19.1
arch linux
The text was updated successfully, but these errors were encountered: