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
No match for regexp /diff --git (a\/.*) (b\/.*)\n/ #164
Comments
Maybe your git color.ui config is set to always? Use color.ui true and it should work. |
I have/had this in my gitconfig file:
|
this is more a gitonomy/gitlib problem. |
I've tried the steps you've described but I am able to commit.
Did you overwrite the basic git diff command or added a custom diff pager? (For example diff-so-fancy) |
The output is the following:
I do indeed have diff-so-fancy installed, could that be reason ? |
In my
But it's still showing the same error. |
I also use diff-so-fancy, but only with the command: git dsf If you overwrite default diff behaviour, your diff can't probably be parsed correctly which results in this error. Take a look at the message:
Your diffs looks like:
It should look like
Instead it looks like this:
This means that gitlib can't parse the diff. I would expect that diff-so-fancy is the cause of this problem. |
Hm I see, that makes sense indeed. How could I disable diff-so-fancy though, since I've already commented out the When I try to source the .gitconfig file, I'm getting the following error
Which is odd since there I have:
Thanks! |
I also removed diff-so-fancy that was installed with brew, using |
I've looked into diff-so-fancy and it doesn't seem to transform those a/ b/ things to i/ c/. |
Hello, I'm using Thanks, |
I've just took a look at the git source code and it looks like it is expecting it to be a/ and b/: Not sure what is going wrong in your installation. Maybe you can try to reinstall git? |
Hello, Thanks to the help of @armababy it was a matter of setting the following:
With this, it works.. |
Hi,
I installed GrumPHP with one task, php-cs-fixer, and when commiting a file, it shows the following error.
However when I run
php ./vendor/bin/grumphp run
it works as expected.My configuration
Result:
The text was updated successfully, but these errors were encountered: