-
Notifications
You must be signed in to change notification settings - Fork 397
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
Fix regression #117
base: master
Are you sure you want to change the base?
Fix regression #117
Conversation
Git 2.17.0 changes the "n" in this string from upper to lower case, which in turn caused an empty git status prompt when not in a checked-out git repository. This patch addresses both scenarios. Yes, it was as annoying to track down as you probably think.
@@ -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(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not
-> not
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as @peikk0 said 'fatal: Not a git repository' should be 'fatal: not a git repository'
Too bad this repo is unmaintained :/ Thanks for the PR anyway :) |
Hi. There is the better fix in #119 |
From git 2.17.0, it appears that the error string changes. olivierverdier#117
Git 2.17.0 changes the "n" in this string from upper to lower case, which in turn caused an empty git status prompt when not in a checked-out git repository. This patch addresses both scenarios.
Yes, it was as annoying to track down as you probably think.