]> Dogcows Code - chaz/git-codeowners/commitdiff
configure git user
authorCharles McGarvey <chazmcgarvey@brokenzipper.com>
Sun, 17 Nov 2019 22:56:35 +0000 (15:56 -0700)
committerCharles McGarvey <chazmcgarvey@brokenzipper.com>
Sun, 17 Nov 2019 22:56:35 +0000 (15:56 -0700)
t/app-codeowners-util.t
t/app-codeowners.t

index d44b06ff02ad7b51f3c71f71493ad8960977fcd3..4d7d224961c871a3fef55a9c973bc75a3f161a61 100644 (file)
@@ -90,6 +90,8 @@ sub _setup_git_repo {
     my $repodir = tempdir;
 
     run_git('-C', $repodir, 'init')->wait;
+    run_git('-C', $repodir, qw{config --local user.email app-codeowners@example.com})->wait;
+    run_git('-C', $repodir, qw{config --local user.name App-Codeowners})->wait;
 
     $repodir->child('foo.txt')->touchpath;
     $repodir->child('a/b/c/bar.txt')->touchpath;
index b5e430e3177919d6a38517d278cea564623372fd..48493d1fc2d102790e1796220250fdd0ecbbbb37 100644 (file)
@@ -114,6 +114,8 @@ a/  @snickers
 END
 
     run_git('-C', $repodir, qw{init})->wait;
+    run_git('-C', $repodir, qw{config --local user.email app-codeowners@example.com})->wait;
+    run_git('-C', $repodir, qw{config --local user.name App-Codeowners})->wait;
     run_git('-C', $repodir, qw{add .})->wait;
     run_git('-C', $repodir, qw{commit -m}, 'initial commit')->wait;
 
This page took 0.025023 seconds and 4 git commands to generate.