summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2022-08-13 14:59:16 +0200
committerYves Orton <demerphq@gmail.com>2022-08-16 12:58:39 +0200
commitc818c4589620cabbe050273290e5b67d27319a43 (patch)
tree8a44165dcd16c3bb63f7652c81b29cb84532b881
parent4e10e6a026bbae6884b782d6fe1a89662ec9a63c (diff)
downloadperl-c818c4589620cabbe050273290e5b67d27319a43.tar.gz
t/porting/authors.t - respect .mailmap in test
The logic in checkAUTHORS.pl internally uses the "Author:" data from git log --pretty=fuller which respects .mailmap entries, thus it is actually equivalent to git log --pretty='format:%aN %aE' whereas "%an %ae" will show the raw uncorrected values, this can then make authors.t think there are more and different authors than there actually are.
-rw-r--r--t/porting/authors.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/porting/authors.t b/t/porting/authors.t
index 58dd3fa04b..f2de6bdff1 100644
--- a/t/porting/authors.t
+++ b/t/porting/authors.t
@@ -41,6 +41,6 @@ elsif( $ENV{GITHUB_ACTIONS} && length $ENV{GITHUB_BASE_REF} ) {
}
# This is the subset of "pretty=fuller" that checkAUTHORS.pl actually needs:
-print qx{git log --pretty=format:"Author: %an <%ae>" $revision_range | $^X Porting/checkAUTHORS.pl --tap -};
+print qx{git log --pretty=format:"Author: %aN <%aE>" $revision_range | $^X Porting/checkAUTHORS.pl --tap -};
# EOF