@@ -49,7 +49,8 @@ mod with_overrides {
4949 . set ( "GIT_NOGLOB_PATHSPECS" , "pathspecs-noglob" )
5050 . set ( "GIT_ICASE_PATHSPECS" , "pathspecs-icase" )
5151 . set ( "GIT_TERMINAL_PROMPT" , "42" )
52- . set ( "GIT_SHALLOW_FILE" , "shallow-file-env" ) ;
52+ . set ( "GIT_SHALLOW_FILE" , "shallow-file-env" )
53+ . set ( "GIT_NAMESPACE" , "namespace-env" ) ;
5354 let mut opts = gix:: open:: Options :: isolated ( )
5455 . cli_overrides ( [
5556 "http.userAgent=agent-from-cli" ,
@@ -62,6 +63,7 @@ mod with_overrides {
6263 "gitoxide.ssh.commandWithoutShellFallback=ssh-command-fallback-cli" ,
6364 "gitoxide.http.proxyAuthMethod=proxy-auth-method-cli" ,
6465 "gitoxide.core.shallowFile=shallow-file-cli" ,
66+ "gitoxide.core.refsNamespace=namespace-cli" ,
6567 ] )
6668 . config_overrides ( [
6769 "http.userAgent=agent-from-api" ,
@@ -74,6 +76,7 @@ mod with_overrides {
7476 "gitoxide.ssh.commandWithoutShellFallback=ssh-command-fallback-api" ,
7577 "gitoxide.http.proxyAuthMethod=proxy-auth-method-api" ,
7678 "gitoxide.core.shallowFile=shallow-file-api" ,
79+ "gitoxide.core.refsNamespace=namespace-api" ,
7780 ] ) ;
7881 opts. permissions . env . git_prefix = Permission :: Allow ;
7982 opts. permissions . env . http_transport = Permission :: Allow ;
@@ -96,6 +99,16 @@ mod with_overrides {
9699 cow_bstr( "shallow-file-env" )
97100 ]
98101 ) ;
102+ assert_eq ! (
103+ config
104+ . strings_by_key( "gitoxide.core.refsNamespace" )
105+ . expect( "at least one value" ) ,
106+ [
107+ cow_bstr( "namespace-cli" ) ,
108+ cow_bstr( "namespace-api" ) ,
109+ cow_bstr( "namespace-env" )
110+ ]
111+ ) ;
99112 assert_eq ! (
100113 config. strings_by_key( "http.userAgent" ) . expect( "at least one value" ) ,
101114 [
0 commit comments