]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
deal with the case where oldrev is the same as newrev
authorJoey Hess <joey@kitenet.net>
Sun, 17 Nov 2013 00:48:23 +0000 (20:48 -0400)
committerJoey Hess <joey@kitenet.net>
Sun, 17 Nov 2013 00:48:23 +0000 (20:48 -0400)
IkiWiki/Plugin/git.pm

index f2b5f9ef98099e99f8adf23be3e19c7efbfb7468..77c0678bcbd8dfd32c13b164477ea899d0c9f38a 100644 (file)
@@ -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}}) {