Przeglądaj źródła

git-notify: Save author without trailing space

Adjust the regular expression which catches the commit author name so
that it doesn't include the space character which follows that name.
Holger Weiss 16 lat temu
rodzic
commit
51771dc540
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      tools/git-notify

+ 1 - 1
tools/git-notify

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