Output is
.gem/ruby/2.1.2/gems/rubocop-git-0.1.1/lib/rubocop/git/diff_parser.rb:24:in `block in parse': undefined method `patch' for nil:NilClass (NoMethodError)
The following regex does not match the patched file name
[1] pry(main)> '+++ i/test.rb' =~ %r{^\+{3} b/(?<path>[^\t\n\r]+)}
=> nil
It has i/ prefix instead of b/ because I have diff.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.
Output is
The following regex does not match the patched file name
It has
i/prefix instead ofb/because I havediff.mnemonicprefixenabled.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.