From: Joey Hess Date: Sun, 17 Nov 2013 00:48:23 +0000 (-0400) Subject: deal with the case where oldrev is the same as newrev X-Git-Tag: debian/3.20140102~64 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/441002e3e6b7f979eb4ef1d2525add2ea308ba6a?ds=sidebyside;hp=727d39b92a90619027badbd4fd28d37a51c25d16 deal with the case where oldrev is the same as newrev --- diff --git a/IkiWiki/Plugin/git.pm b/IkiWiki/Plugin/git.pm index f2b5f9ef9..77c0678bc 100644 --- a/IkiWiki/Plugin/git.pm +++ b/IkiWiki/Plugin/git.pm @@ -476,7 +476,7 @@ 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}}) {