aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2013-11-16 20:48:23 -0400
committerJoey Hess <joey@kitenet.net>2013-11-16 20:48:23 -0400
commit441002e3e6b7f979eb4ef1d2525add2ea308ba6a (patch)
tree4c2737b4281146a3a351b698809f7fbd45f0a947 /IkiWiki
parent727d39b92a90619027badbd4fd28d37a51c25d16 (diff)
downloadikiwiki-441002e3e6b7f979eb4ef1d2525add2ea308ba6a.tar
ikiwiki-441002e3e6b7f979eb4ef1d2525add2ea308ba6a.tar.gz
deal with the case where oldrev is the same as newrev
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/git.pm2
1 files changed, 1 insertions, 1 deletions
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}}) {