From c7e14d334a59423ea584fb0206a09bb4a74509a8 Mon Sep 17 00:00:00 2001 From: Charles McGarvey Date: Sun, 17 Nov 2019 15:56:35 -0700 Subject: [PATCH] configure git user --- t/app-codeowners-util.t | 2 ++ t/app-codeowners.t | 2 ++ 2 files changed, 4 insertions(+) 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; -- 2.43.0