Browse Source

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
maint
Junio C Hamano 5 years ago
parent
commit
020011f2cb
  1. 4
      perl/Git/SVN.pm

4
perl/Git/SVN.pm

@ -1491,6 +1491,10 @@ sub call_authors_prog { @@ -1491,6 +1491,10 @@ sub call_authors_prog {

sub check_author {
my ($author) = @_;
if (defined $author) {
$author =~ s/^\s+//g;
$author =~ s/\s+$//g;
}
if (!defined $author || length $author == 0) {
$author = '(no author)';
}

Loading…
Cancel
Save