• W
    Fix spurious test failure when GIT_EDITOR is set · 74dcadf4
    Will Maier 提交于
    `git var` checks the `$GIT_EDITOR` environment variable before the `core.editor` config knob. `TestGitDir` intends to verify that the latter is respected, so sanitize the environment before running the test and restore it upon completion.
    74dcadf4
git_test.go 2.2 KB