From f8358073ae4b0ba563c75d9098b6502c79598806 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Fri, 19 Feb 2010 14:01:15 +0000 Subject: Update git-notify with tpo changes git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@443 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- git-notify | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/git-notify b/git-notify index e413a6e..9f6ebab 100755 --- a/git-notify +++ b/git-notify @@ -16,7 +16,7 @@ # | trap "rm -f '$tmpfile'" EXIT # | # | cwd="`pwd`" -# | REPO_NAME="`basename "$cwd"`" +# | REPO_NAME="`basename '$cwd'`" # | while read oldrev newrev refname; do # | echo "$oldrev $newrev $refname" >> "$tmpfile" # | done @@ -40,11 +40,20 @@ $dest_email = 'commit@commit.noreply.org'; $sendmail = '/usr/sbin/sendmail'; -die ("Usage: $0 ") if (scalar @ARGV < 2); +die ("Usage: $0 [ [ [] ] ]") if (scalar @ARGV < 3); # The commit stuff my $commit = $ARGV[0]; my $branch = $ARGV[1]; my $repos = $ARGV[2]; +if (scalar @ARGV > 3) { + $project = $ARGV[3]; +} +if (scalar @ARGV > 4) { + $from_email = $ARGV[4]; +} +if (scalar @ARGV > 5) { + $dest_email = $ARGV[5]; +} open COMMIT, "git-cat-file commit $commit|" or die "git-cat-file commit $commit: $!"; my $state = 0; -- cgit v1.2.3