@@ -194,7 +194,8 @@ mod with_overrides {
194
194
. set ( "GIT_SSL_VERSION" , "tlsv1.3" )
195
195
. set ( "GIT_SSH_VARIANT" , "ssh-variant-env" )
196
196
. set ( "GIT_SSH_COMMAND" , "ssh-command-env" )
197
- . set ( "GIT_SSH" , "ssh-command-fallback-env" ) ;
197
+ . set ( "GIT_SSH" , "ssh-command-fallback-env" )
198
+ . set ( "GIT_SHALLOW_FILE" , "shallow-file-env" ) ;
198
199
let mut opts = gix:: open:: Options :: isolated ( )
199
200
. cli_overrides ( [
200
201
"http.userAgent=agent-from-cli" ,
@@ -206,6 +207,7 @@ mod with_overrides {
206
207
"core.sshCommand=ssh-command-cli" ,
207
208
"gitoxide.ssh.commandWithoutShellFallback=ssh-command-fallback-cli" ,
208
209
"gitoxide.http.proxyAuthMethod=proxy-auth-method-cli" ,
210
+ "gitoxide.core.shallowFile=shallow-file-cli" ,
209
211
] )
210
212
. config_overrides ( [
211
213
"http.userAgent=agent-from-api" ,
@@ -217,6 +219,7 @@ mod with_overrides {
217
219
"core.sshCommand=ssh-command-api" ,
218
220
"gitoxide.ssh.commandWithoutShellFallback=ssh-command-fallback-api" ,
219
221
"gitoxide.http.proxyAuthMethod=proxy-auth-method-api" ,
222
+ "gitoxide.core.shallowFile=shallow-file-api" ,
220
223
] ) ;
221
224
opts. permissions . env . git_prefix = Permission :: Allow ;
222
225
opts. permissions . env . http_transport = Permission :: Allow ;
@@ -229,6 +232,16 @@ mod with_overrides {
229
232
"config always refers to the local one for safety"
230
233
) ;
231
234
let config = repo. config_snapshot ( ) ;
235
+ assert_eq ! (
236
+ config
237
+ . strings_by_key( "gitoxide.core.shallowFile" )
238
+ . expect( "at least one value" ) ,
239
+ [
240
+ cow_bstr( "shallow-file-cli" ) ,
241
+ cow_bstr( "shallow-file-api" ) ,
242
+ cow_bstr( "shallow-file-env" )
243
+ ]
244
+ ) ;
232
245
assert_eq ! (
233
246
config. strings_by_key( "http.userAgent" ) . expect( "at least one value" ) ,
234
247
[
0 commit comments