Code

git-notify: Save author without trailing space
authorHolger Weiss <holger@zedat.fu-berlin.de>
Sat, 24 Oct 2009 09:44:00 +0000 (11:44 +0200)
committerHolger Weiss <holger@zedat.fu-berlin.de>
Sat, 24 Oct 2009 09:44:00 +0000 (11:44 +0200)
Adjust the regular expression which catches the commit author name so
that it doesn't include the space character which follows that name.

tools/git-notify

index d79cfccd67c4477b5d466d36f4eb6074fb69f1fe..ce013891e850ede89a688d389fb9a2462a6b860e 100755 (executable)
@@ -216,7 +216,7 @@ sub get_object_info($)
             last if /^-----BEGIN PGP SIGNATURE-----/;
             push @log, $_;
         }
-        elsif (/^(author|committer|tagger) ((.*)(<.*>)) (\d+) ([+-]\d+)$/)
+        elsif (/^(author|committer|tagger) ((.*) (<.*>)) (\d+) ([+-]\d+)$/)
         {
             $info{$1} = $2;
             $info{$1 . "_name"} = $3;