@@ -74,13 +74,14 @@ pub(crate) mod function {
7474 let tx_base = tx_base. clone ( ) ;
7575 let mut progress = progress. add_child ( "attributes" ) ;
7676 move || -> anyhow:: Result < ( ) > {
77- let mut child = std:: process:: Command :: new ( gix:: path:: env:: exe_invocation ( ) )
78- . args ( [ "check-attr" , "--stdin" , "-a" ] )
79- . stdin ( std:: process:: Stdio :: piped ( ) )
80- . stdout ( std:: process:: Stdio :: piped ( ) )
81- . stderr ( std:: process:: Stdio :: null ( ) )
82- . current_dir ( path)
83- . spawn ( ) ?;
77+ let mut child =
78+ std:: process:: Command :: from ( gix:: command:: prepare ( gix:: path:: env:: exe_invocation ( ) ) )
79+ . args ( [ "check-attr" , "--stdin" , "-a" ] )
80+ . stdin ( std:: process:: Stdio :: piped ( ) )
81+ . stdout ( std:: process:: Stdio :: piped ( ) )
82+ . stderr ( std:: process:: Stdio :: null ( ) )
83+ . current_dir ( path)
84+ . spawn ( ) ?;
8485
8586 std:: thread:: spawn ( {
8687 let mut stdin = child. stdin . take ( ) . expect ( "we configured it" ) ;
@@ -125,13 +126,14 @@ pub(crate) mod function {
125126 let tx_base = tx_base. clone ( ) ;
126127 let mut progress = progress. add_child ( "excludes" ) ;
127128 move || -> anyhow:: Result < ( ) > {
128- let mut child = std:: process:: Command :: new ( gix:: path:: env:: exe_invocation ( ) )
129- . args ( [ "check-ignore" , "--stdin" , "-nv" , "--no-index" ] )
130- . stdin ( std:: process:: Stdio :: piped ( ) )
131- . stdout ( std:: process:: Stdio :: piped ( ) )
132- . stderr ( std:: process:: Stdio :: null ( ) )
133- . current_dir ( path)
134- . spawn ( ) ?;
129+ let mut child =
130+ std:: process:: Command :: from ( gix:: command:: prepare ( gix:: path:: env:: exe_invocation ( ) ) )
131+ . args ( [ "check-ignore" , "--stdin" , "-nv" , "--no-index" ] )
132+ . stdin ( std:: process:: Stdio :: piped ( ) )
133+ . stdout ( std:: process:: Stdio :: piped ( ) )
134+ . stderr ( std:: process:: Stdio :: null ( ) )
135+ . current_dir ( path)
136+ . spawn ( ) ?;
135137
136138 std:: thread:: spawn ( {
137139 let mut stdin = child. stdin . take ( ) . expect ( "we configured it" ) ;
0 commit comments