| @@ -118,7 +118,7 @@ fn dot_slash_from_environment_causes_error() -> crate::Result { · 117 unmodified lines |
| 118 | { | 118 | { |
| 119 | let _environment = crate::file::from_env::Env::new() | 119 | let _environment = crate::file::from_env::Env::new() |
| 120 | .set("GIT_CONFIG_COUNT", "1") | 120 | .set("GIT_CONFIG_COUNT", "1") |
| 121 | .set("GIT_CONFIG_KEY_0", format!("includeIf.gitdir:./worktree/.path")) | 121 | .set("GIT_CONFIG_KEY_0", "includeIf.gitdir:./worktree/.path") |
| 122 | .set("GIT_CONFIG_VALUE_0", &absolute_path); | 122 | .set("GIT_CONFIG_VALUE_0", &absolute_path); |
| 123 | | 123 | |
| 124 | let res = git_config::File::from_env(env.include_options()); | 124 | let res = git_config::File::from_env(env.include_options()); |
| @@ -143,7 +143,6 @@ fn dot_slash_from_environment_causes_error() -> crate::Result { · 18 unmodified lines |
| 143 | .set("GIT_CONFIG_VALUE_0", absolute_path); | 143 | .set("GIT_CONFIG_VALUE_0", absolute_path); |
| 144 | | 144 | |
| 145 | let res = git_config::File::from_env(env.include_options()); | 145 | let res = git_config::File::from_env(env.include_options()); |
| 146 | dbg!(&res); | | |
| 147 | assert!(res.is_ok(), "missing paths are ignored as before"); | 146 | assert!(res.is_ok(), "missing paths are ignored as before"); |
| 148 | } | 147 | } |
| 149 | | 148 | |