mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-11-29 22:48:24 +02:00
apply user config changes in sandbox mode
This commit is contained in:
@@ -39,11 +39,6 @@ func getIntegrationTest() integrationTypes.IntegrationTest {
|
||||
return nil
|
||||
}
|
||||
|
||||
if os.Getenv(components.SANDBOX_ENV_VAR) == "true" {
|
||||
// when in sandbox mode we don't want the test controlling the gui
|
||||
return nil
|
||||
}
|
||||
|
||||
integrationTestName := os.Getenv(components.TEST_NAME_ENV_VAR)
|
||||
if integrationTestName == "" {
|
||||
panic(fmt.Sprintf(
|
||||
|
||||
@@ -154,7 +154,7 @@ func getLazygitCommand(test *IntegrationTest, paths Paths, rootDir string, sandb
|
||||
|
||||
cmdObj.AddEnvVars(fmt.Sprintf("%s=%s", TEST_NAME_ENV_VAR, test.Name()))
|
||||
if sandbox {
|
||||
cmdObj.AddEnvVars(fmt.Sprintf("%s=%s", "SANDBOX", "true"))
|
||||
cmdObj.AddEnvVars(fmt.Sprintf("%s=%s", SANDBOX_ENV_VAR, "true"))
|
||||
}
|
||||
|
||||
if keyPressDelay > 0 {
|
||||
|
||||
Reference in New Issue
Block a user