@@ -101,7 +101,7 @@ impl CliGitHandler {
101101 }
102102
103103 fn run_git_bytes ( args : & [ & str ] , current_dir : Option < & Path > ) -> GitResult < Vec < u8 > > {
104- let mut command = Command :: new ( "git" ) ;
104+ let mut command = crate :: git_command ( ) ;
105105 Self :: configure_command ( & mut command) ;
106106 command. args ( args) ;
107107
@@ -178,7 +178,7 @@ impl CliGitHandler {
178178 args : & [ & str ] ,
179179 current_dir : Option < & Path > ,
180180 ) -> GitResult < ( ) > {
181- let mut command = Command :: new ( "git" ) ;
181+ let mut command = crate :: git_command ( ) ;
182182 Self :: configure_command ( & mut command) ;
183183 command. args ( overrides. iter ( ) . map ( String :: as_str) ) . args ( args) ;
184184 if let Some ( path) = current_dir {
@@ -208,7 +208,7 @@ impl CliGitHandler {
208208 current_dir : Option < & Path > ,
209209 extra_ok_codes : & [ i32 ] ,
210210 ) -> GitResult < String > {
211- let mut command = Command :: new ( "git" ) ;
211+ let mut command = crate :: git_command ( ) ;
212212 Self :: configure_command ( & mut command) ;
213213 command. args ( args) ;
214214
@@ -456,7 +456,7 @@ impl CliGitHandler {
456456 current_dir : & Path ,
457457 stdin_data : & [ u8 ] ,
458458 ) -> GitResult < String > {
459- let mut command = Command :: new ( "git" ) ;
459+ let mut command = crate :: git_command ( ) ;
460460 Self :: configure_command ( & mut command) ;
461461 command
462462 . args ( args)
@@ -607,7 +607,7 @@ impl CliGitHandler {
607607 }
608608
609609 fn get_diff_tool_name ( repo_path : & Path ) -> Option < String > {
610- let mut command = Command :: new ( "git" ) ;
610+ let mut command = crate :: git_command ( ) ;
611611 Self :: configure_command ( & mut command) ;
612612 let output = command
613613 . args ( [ "config" , "--get" , "diff.tool" ] )
@@ -637,7 +637,7 @@ impl CliGitHandler {
637637 }
638638
639639 fn get_merge_tool_name ( repo_path : & Path ) -> Option < String > {
640- let mut command = Command :: new ( "git" ) ;
640+ let mut command = crate :: git_command ( ) ;
641641 Self :: configure_command ( & mut command) ;
642642 let output = command
643643 . args ( [ "config" , "--get" , "merge.tool" ] )
@@ -718,7 +718,7 @@ impl CliGitHandler {
718718 cmd
719719 }
720720 _ => {
721- let mut cmd = Command :: new ( "git" ) ;
721+ let mut cmd = crate :: git_command ( ) ;
722722 Self :: configure_command ( & mut cmd) ;
723723 cmd. args ( Self :: difftool_cmd_overrides ( tool_name) )
724724 . args ( [ "difftool" , "-y" , "--tool" , tool_name, "--no-index" , "--" ] )
0 commit comments