Supply all of the _specific_ color options too #728
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Previously, we were supplying
color.ui=false
, but if the local gitconfig specified any of the more specific options (likecolor.diff
), those would take precedence. This updates our command-runner to always supply all of the specific color options as false as well, so that we definitely get a color-free output suitable for parsing.Updating the fixture causes several of the existing specs to fail without the code changes (especially the
diff
tests), which is probably an appropriate level of testing - I doubt all of these config options are actually necessary, but I don't see any harm in including them.This should replace #723, since that won't be necessary anymore. We don't currently have any tests checking the actual contents of the commands being run, but I could rig up a test that supplies a
.git/config
.