-
-
Notifications
You must be signed in to change notification settings - Fork 25.7k
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
git-prompt show errors if the current branch is a tag #5747
Comments
Line 20 in plugins/git-prompt/gitstatus.py has a greedy .* that has to be non-greedy to work. This is a sample where greedy will cause issues: the current regex selects Simply adding a ? after .* will fix the issue. There is already a pull request open for this: |
Same issue when simply doing
|
FWIW I had this issue when I cloned a new, empty repo this morning. After 20 minutes of troubleshooting, I decided to make a first commit and push, after which this error stopped showing up. So if this is happening with a new, empty repo, try pushing a commit and see if it goes away. Not ideal, but good enough. |
The text was updated successfully, but these errors were encountered: