Skip to content
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/ #114

Open
nWidart opened this issue Jul 28, 2016 · 6 comments
Open

No match for regexp /diff --git (a\/.*) (b\/.*)\n/ #114

nWidart opened this issue Jul 28, 2016 · 6 comments

Comments

@nWidart
Copy link

nWidart commented Jul 28, 2016

Hello,

I would like to use GrumPHP. However after installation, and trying to perform a commit I get the following error:

[Gitonomy\Git\Exception\RuntimeException]                                                    
  No match for regexp /diff --git (a\/.*) (b\/.*)\n/ Upcoming: diff --git c/composer.json i/c

screen shot 2016-07-28 at 16 03 50

I started by posted the issue on the grumphp repository, who suggested me to post here. phpro/grumphp#164 (comment)

Thanks,

@veewee
Copy link

veewee commented Aug 1, 2016

This error was due to:

git config --global diff.mnemonicprefix true

Maybe it is possible to add support for mnemonic mode or add the configuration option to the diff command?

@alexandresalome
Copy link
Member

You can replace a/b with a class-character : [a-z]

@Jutmzg
Copy link

Jutmzg commented Apr 24, 2019

maybe because you have chars in some files

@DanielSiepmann
Copy link

I had the same error caused by the same configuration. Would be cool if the commands would send the option so they tell git to work as expected while people can alter their git config to their needs.

@tolik518
Copy link
Contributor

I had the same error caused by the same configuration. Would be cool if the commands would send the option so they tell git to work as expected while people can alter their git config to their needs.

Could you tell me which version of gitlib you are using? @DanielSiepmann

@DanielSiepmann
Copy link

DanielSiepmann commented Dec 13, 2022

Sure: v1.3.7 the latest available tag and git version 2.38.1.

Tried to optimize the file paths for copy and paste by changing this setting. PHP is executed with my user as well and broke to the changed setting. I guess it was just unkown that this output can be modified via settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

6 participants