chiark / gitweb /
dgit-badcommit-fixup: Remove obsolete variable
[dgit.git] / dgit-badcommit-fixup
index 08b6e3766f2c8c51672a235eda4e339eafbd3c6e..6d6a705ec8a235c84f31bea89df63ea1f81349c6 100755 (executable)
@@ -144,11 +144,10 @@ foreach my $rline (split /\n/, $refs) {
        warn "ref $refname refers to $type\n";
        next;
     }
-    next if $rewrite eq $obj;
     push @updates, [ $refname, $obj, $rewrite ];
 }
 
-our $worktree;
+@updates = grep { $_->[1] ne $_->[2] } @updates;
 
 #print Dumper(\@updates);