-
Notifications
You must be signed in to change notification settings - Fork 57
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
Raises error when git configuration diff.mnemonicprefix
is enabled
#20
Comments
@dsbonev Thanks for the idea about how to work around this issue. 👍 Just to save others a bit of time... the line rubocop-git/lib/rubocop/git/runner.rb Line 36 in 8d6d002
args = %w(-c diff.mnemonicprefix=false diff --diff-filter=AMCR --find-renames --find-copies)
|
if anyone is still using this, i've release a forked gem, |
@jaynetics Why not link it: jaynetics/rubocop-git2. Also, updating the readme with usage info and screenshots would probably lead to this getting a lot more use. |
Output is
The following regex does not match the patched file name
It has
i/
prefix instead ofb/
because I havediff.mnemonicprefix
enabled.To fix this I would suggest either (1) handle the mnemonic prefixes as well or (2) pass configuration option when this gem executes the git diff command
git -c diff.mnemonicprefix=false
.The text was updated successfully, but these errors were encountered: