From: Charles McGarvey Date: Sun, 17 Nov 2019 22:56:35 +0000 (-0700) Subject: configure git user X-Git-Tag: v0.47~2 X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=c7e14d334a59423ea584fb0206a09bb4a74509a8;p=chaz%2Fgit-codeowners configure git user --- diff --git a/t/app-codeowners-util.t b/t/app-codeowners-util.t index d44b06f..4d7d224 100644 --- a/t/app-codeowners-util.t +++ b/t/app-codeowners-util.t @@ -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; diff --git a/t/app-codeowners.t b/t/app-codeowners.t index b5e430e..48493d1 100644 --- a/t/app-codeowners.t +++ b/t/app-codeowners.t @@ -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;