]> sipb.mit.edu Git - ikiwiki.git/commitdiff
fix dumb mistake
authorJoey Hess <joey@kodama.kitenet.net>
Wed, 31 Oct 2007 22:42:14 +0000 (18:42 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Wed, 31 Oct 2007 22:42:14 +0000 (18:42 -0400)
IkiWiki/Rcs/git.pm

index a1e06c51ce4973c7e0e386a8886ad033728b0bbc..dc79449a4d3cc20ccab9df54da2f05ea1351e713 100644 (file)
@@ -165,10 +165,7 @@ sub _parse_diff_tree ($@) { #{{{
        # Identification lines for the commit.
        while (my $line = shift @{ $dt_ref }) {
                # Regexps are semi-stolen from gitweb.cgi.
        # Identification lines for the commit.
        while (my $line = shift @{ $dt_ref }) {
                # Regexps are semi-stolen from gitweb.cgi.
-               if ($line =~ m/^commit ([0-9a-fA-F]{40})$/) {
-                       $ci{'commit'} = $1;
-               }
-               elsif ($line =~ m/^tree ([0-9a-fA-F]{40})$/) {
+               if ($line =~ m/^tree ([0-9a-fA-F]{40})$/) {
                        $ci{'tree'} = $1;
                }
                elsif ($line =~ m/^parent ([0-9a-fA-F]{40})$/) {
                        $ci{'tree'} = $1;
                }
                elsif ($line =~ m/^parent ([0-9a-fA-F]{40})$/) {
@@ -451,7 +448,7 @@ sub rcs_notify () { #{{{
                $message = join "\n", @{ $ci->{'comment'} };
        }
 
                $message = join "\n", @{ $ci->{'comment'} };
        }
 
-       my $sha1 = $ci->{'commit'};
+       my $sha1 = $ci->{'sha1'};
 
        require IkiWiki::UserInfo;
        send_commit_mails(
 
        require IkiWiki::UserInfo;
        send_commit_mails(