about summary refs log tree commit diff
path: root/third_party/git/perl/Git/SVN.pm
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/git/perl/Git/SVN.pm')
-rw-r--r--third_party/git/perl/Git/SVN.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/third_party/git/perl/Git/SVN.pm b/third_party/git/perl/Git/SVN.pm
index 76b29659057d..4b28b8778474 100644
--- a/third_party/git/perl/Git/SVN.pm
+++ b/third_party/git/perl/Git/SVN.pm
@@ -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)';
 	}