@@ -9,10 +9,13 @@ use std::path::Path;
9
9
#[ serial]
10
10
fn author_included_by_hasconfig ( ) -> crate :: Result {
11
11
let repo = named_subrepo_opts ( "make_config_repos.sh" , "with-hasconfig" , gix:: open:: Options :: isolated ( ) ) ?;
12
- let _env = Env :: new ( ) . set (
13
- "GIT_CONFIG_SYSTEM" ,
14
- repo. git_dir ( ) . join ( "system.config" ) . display ( ) . to_string ( ) ,
15
- ) ;
12
+ let _env = Env :: new ( )
13
+ . set (
14
+ "GIT_CONFIG_SYSTEM" ,
15
+ repo. git_dir ( ) . join ( "system.config" ) . display ( ) . to_string ( ) ,
16
+ )
17
+ . unset ( "GIT_AUTHOR_NAME" )
18
+ . unset ( "GIT_COMMITTER_NAME" ) ;
16
19
let repo = gix:: open_opts ( repo. git_dir ( ) , allow_system_options ( repo. open_options ( ) . clone ( ) ) ) ?;
17
20
let author = repo. author ( ) . expect ( "set in system config via include" ) ?;
18
21
assert_eq ! ( author. name, "works" ) ;
@@ -146,7 +149,9 @@ fn author_from_different_config_sections() -> crate::Result {
146
149
. set ( "GIT_CONFIG_GLOBAL" , work_dir. join ( "global.config" ) . to_str ( ) . unwrap ( ) )
147
150
. set ( "GIT_CONFIG_SYSTEM" , work_dir. join ( "system.config" ) . to_str ( ) . unwrap ( ) )
148
151
. set ( "GIT_AUTHOR_DATE" , "1979-02-26 18:30:00" )
152
+ . unset ( "GIT_AUTHOR_NAME" )
149
153
. set ( "GIT_COMMITTER_DATE" , "1980-02-26 18:30:00 +0000" )
154
+ . unset ( "GIT_COMMITTER_NAME" )
150
155
. set ( "EMAIL" , "general@email-unused" ) ;
151
156
152
157
let repo = gix:: open_opts (
0 commit comments