diff options
author | Peter Palfrader <peter@palfrader.org> | 2010-02-19 14:01:15 +0000 |
---|---|---|
committer | weasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2010-02-19 14:01:15 +0000 |
commit | f8358073ae4b0ba563c75d9098b6502c79598806 (patch) | |
tree | c2926f34d2bfbf37042e30ca2ed8587faee6d5ef /git-notify | |
parent | 361c090c3051ab23af96a40a81ba5cd2f7948d67 (diff) |
Update git-notify with tpo changes
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@443 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
Diffstat (limited to 'git-notify')
-rwxr-xr-x | git-notify | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -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 <commit> <branch>") if (scalar @ARGV < 2); +die ("Usage: $0 <commit> <branch> <repos> [<project> [<from_email> [<dest_email>] ] ]") 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; |