@@ -74,13 +74,14 @@ pub(crate) mod function {
74
74
let tx_base = tx_base. clone ( ) ;
75
75
let mut progress = progress. add_child ( "attributes" ) ;
76
76
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 ( ) ?;
84
85
85
86
std:: thread:: spawn ( {
86
87
let mut stdin = child. stdin . take ( ) . expect ( "we configured it" ) ;
@@ -125,13 +126,14 @@ pub(crate) mod function {
125
126
let tx_base = tx_base. clone ( ) ;
126
127
let mut progress = progress. add_child ( "excludes" ) ;
127
128
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 ( ) ?;
135
137
136
138
std:: thread:: spawn ( {
137
139
let mut stdin = child. stdin . take ( ) . expect ( "we configured it" ) ;
0 commit comments