summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2007-10-31 18:42:14 -0400
committerJoey Hess <joey@kodama.kitenet.net>2007-10-31 18:42:14 -0400
commit9e7160a664a1cb0f09baf9c6030f018b3040ea6e (patch)
treea093552daf18272059afcf978ab65e989d9b0ce4
parentada249e0dde4a84d583ab46345c789e366a4be33 (diff)
fix dumb mistake
-rw-r--r--IkiWiki/Rcs/git.pm7
1 files changed, 2 insertions, 5 deletions
diff --git a/IkiWiki/Rcs/git.pm b/IkiWiki/Rcs/git.pm
index a1e06c51c..dc79449a4 100644
--- a/IkiWiki/Rcs/git.pm
+++ b/IkiWiki/Rcs/git.pm
@@ -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.
- 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})$/) {
@@ -451,7 +448,7 @@ sub rcs_notify () { #{{{
$message = join "\n", @{ $ci->{'comment'} };
}
- my $sha1 = $ci->{'commit'};
+ my $sha1 = $ci->{'sha1'};
require IkiWiki::UserInfo;
send_commit_mails(