X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/654530fa8bb0937123ed526e3093170ef23f5295..1d3b2674c87c9cac395228dac9b60c751d4e06a1:/IkiWiki/Plugin/git.pm diff --git a/IkiWiki/Plugin/git.pm b/IkiWiki/Plugin/git.pm index 1dbf00d55..77c0678bc 100644 --- a/IkiWiki/Plugin/git.pm +++ b/IkiWiki/Plugin/git.pm @@ -476,12 +476,12 @@ sub rcs_find_changes ($) { my %changed; my %deleted; my $nullsha = 0 x 40; - my $newrev; + my $newrev=$oldrev; while (my $ci = parse_diff_tree(\@raw_lines)) { $newrev=$ci->{sha1}; foreach my $i (@{$ci->{details}}) { my $file=$i->{file}; - if ($i->{sha1_to} == $nullsha) { + if ($i->{sha1_to} eq $nullsha) { delete $changed{$file}; $deleted{$file}=1; }