Spec failure when Git is globally configured with diff.noprefix=true
requested to merge ashumkin/gitlab-ce:spec-failure-when-git-config-diff-noprefix-eq-true into master
What does this MR do?
Fixes some rspec tests failure (spec/lib/gitlab/git/*_spec.rb
) when Git is globally (in ~/.gitconfig
) configured with diff.noprefix=true
.
Why was this MR needed?
Tests have to be independent of environment they are being run in.