@@ -28,11 +28,17 @@ else {
28
28
plan skip_all => ' Can not find git command' ;
29
29
}
30
30
31
+ my $git_user_name = ' Rex' ;
32
+ my $git_user_email =
' [email protected] ' ;
31
33
my $empty_config_file = $OSNAME eq ' MSWin32' ? q( ) : File::Spec-> devnull();
32
34
33
35
my $git_environment = {
34
- GIT_CONFIG_GLOBAL => $empty_config_file ,
35
- GIT_CONFIG_SYSTEM => $empty_config_file ,
36
+ GIT_CONFIG_GLOBAL => $empty_config_file ,
37
+ GIT_CONFIG_SYSTEM => $empty_config_file ,
38
+ GIT_AUTHOR_NAME => $git_user_name ,
39
+ GIT_AUTHOR_EMAIL => $git_user_email ,
40
+ GIT_COMMITTER_NAME => $git_user_name ,
41
+ GIT_COMMITTER_EMAIL => $git_user_email ,
36
42
};
37
43
38
44
ok( $git , " Found git command at $git " );
@@ -86,11 +92,6 @@ sub prepare_test_repo {
86
92
87
93
i_run ' git init' , cwd => $directory , env => $git_environment ;
88
94
89
- i_run ' git config user.name Rex' , cwd => $directory , env => $git_environment ;
90
- i_run
' git config user.email [email protected] ' ,
91
- cwd => $directory ,
92
- env => $git_environment ;
93
-
94
95
i_run ' git commit --allow-empty -m commit' ,
95
96
cwd => $directory ,
96
97
env => $git_environment ;
0 commit comments