From 441002e3e6b7f979eb4ef1d2525add2ea308ba6a Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 16 Nov 2013 20:48:23 -0400 Subject: [PATCH] deal with the case where oldrev is the same as newrev --- IkiWiki/Plugin/git.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}}) { -- 2.44.0