fix user determination for web commits
parent
ed982a6f30
commit
7a9fd7f2fa
|
@ -202,6 +202,12 @@ sub rcs_notify () { #{{{
|
|||
my $user=`svnlook author $config{svnrepo} -r $rev`;
|
||||
chomp $user;
|
||||
|
||||
my $message=`svnlook log $config{svnrepo} -r $rev`;
|
||||
if ($message=~/$config{web_commit_regexp}/) {
|
||||
$user=defined $2 ? "$2" : "$3";
|
||||
$message=$4;
|
||||
}
|
||||
|
||||
my @changed_pages;
|
||||
foreach my $change (`svnlook changed $config{svnrepo} -r $rev`) {
|
||||
chomp $change;
|
||||
|
@ -213,11 +219,6 @@ sub rcs_notify () { #{{{
|
|||
require IkiWiki::UserInfo;
|
||||
send_commit_mails(
|
||||
sub {
|
||||
my $message=`svnlook log $config{svnrepo} -r $rev`;
|
||||
if ($message=~/$config{web_commit_regexp}/) {
|
||||
$user=defined $2 ? "$2" : "$3";
|
||||
$message=$4;
|
||||
}
|
||||
return $message;
|
||||
},
|
||||
sub {
|
||||
|
|
Loading…
Reference in New Issue