summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2009-10-24 11:44:00 +0200
committerHolger Weiss <holger@zedat.fu-berlin.de>2009-10-24 11:44:00 +0200
commit51771dc540eef3be94f5f0a55dc7337f3c597e3f (patch)
treed360ca2773ebf0c2d830c09cc3272be5f14398bc
parent7f1844835dac4df2e8fe98d72d6fe77d5117eb2e (diff)
downloadmonitoring-plugins-51771dc540eef3be94f5f0a55dc7337f3c597e3f.tar.gz
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.
-rwxr-xr-xtools/git-notify2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/git-notify b/tools/git-notify
index d79cfccd..ce013891 100755
--- a/tools/git-notify
+++ b/tools/git-notify
@@ -216,7 +216,7 @@ sub get_object_info($)
216 last if /^-----BEGIN PGP SIGNATURE-----/; 216 last if /^-----BEGIN PGP SIGNATURE-----/;
217 push @log, $_; 217 push @log, $_;
218 } 218 }
219 elsif (/^(author|committer|tagger) ((.*)(<.*>)) (\d+) ([+-]\d+)$/) 219 elsif (/^(author|committer|tagger) ((.*) (<.*>)) (\d+) ([+-]\d+)$/)
220 { 220 {
221 $info{$1} = $2; 221 $info{$1} = $2;
222 $info{$1 . "_name"} = $3; 222 $info{$1 . "_name"} = $3;