File tree Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -185,26 +185,19 @@ impl Git {
185
185
let git_editor = OsString :: from ( ":" ) ;
186
186
187
187
let new_path = self . get_path_for_env ( ) ;
188
- let mut envs = vec ! [
188
+ let envs = vec ! [
189
189
( "GIT_CONFIG_NOSYSTEM" , OsString :: from( "1" ) ) ,
190
190
( "GIT_AUTHOR_DATE" , date. clone( ) ) ,
191
191
( "GIT_COMMITTER_DATE" , date) ,
192
192
( "GIT_EDITOR" , git_editor) ,
193
193
( "GIT_EXEC_PATH" , self . git_exec_path. as_os_str( ) . into( ) ) ,
194
194
( "PATH" , new_path) ,
195
195
( TEST_GIT , self . path_to_git. as_os_str( ) . into( ) ) ,
196
- ] ;
197
- if let Some ( test_separate_command_binaries) =
198
- std:: env:: var_os ( TEST_SEPARATE_COMMAND_BINARIES )
199
- {
200
- envs. push ( (
196
+ (
201
197
TEST_SEPARATE_COMMAND_BINARIES ,
202
- test_separate_command_binaries,
203
- ) ) ;
204
- }
205
- if let Some ( rust_log) = std:: env:: var_os ( "RUST_LOG" ) {
206
- envs. push ( ( "RUST_LOG" , rust_log) ) ;
207
- }
198
+ std:: env:: var_os( TEST_SEPARATE_COMMAND_BINARIES ) . unwrap_or_default( ) ,
199
+ ) ,
200
+ ] ;
208
201
209
202
envs. into_iter ( )
210
203
. map ( |( key, value) | ( OsString :: from ( key) , value) )
You can’t perform that action at this time.
0 commit comments