mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-12 04:45:47 +02:00
Disable ~/.gitconfig when running integration tests
A global ~/.gitconfig file can have influence on how integration tests behave; in my case, I had the option "merge.conflictStyle" set to "diff3", which made the integration test "cherry_pick_conflict" fail because the diff was different from what the test expected. Make this more robust by telling git to ignore the global config file when running tests.
This commit is contained in:
parent
469938ee9b
commit
b243f30f48
1 changed files with 2 additions and 0 deletions
|
@ -165,6 +165,8 @@ func getLazygitCommand(test *IntegrationTest, paths Paths, rootDir string, sandb
|
|||
cmdObj.AddEnvVars(fmt.Sprintf("KEY_PRESS_DELAY=%d", keyPressDelay))
|
||||
}
|
||||
|
||||
cmdObj.AddEnvVars("GIT_CONFIG_GLOBAL=/dev/null")
|
||||
|
||||
return cmdObj.GetCmd(), nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue