Skip to content

Commit 020011f

Browse files
committed
Merge branch 'tk/git-svn-trim-author-name'
The author names taken from SVN repositories may have extra leading or trailing whitespaces, which are now munged away. * tk/git-svn-trim-author-name: git-svn: trim leading and trailing whitespaces in author name
2 parents 676278f + 4ddd4bd commit 020011f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

perl/Git/SVN.pm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1491,6 +1491,10 @@ sub call_authors_prog {
14911491

14921492
sub check_author {
14931493
my ($author) = @_;
1494+
if (defined $author) {
1495+
$author =~ s/^\s+//g;
1496+
$author =~ s/\s+$//g;
1497+
}
14941498
if (!defined $author || length $author == 0) {
14951499
$author = '(no author)';
14961500
}

0 commit comments

Comments
 (0)