summaryrefslogtreecommitdiff
path: root/dgit-badcommit-fixup
diff options
context:
space:
mode:
Diffstat (limited to 'dgit-badcommit-fixup')
-rwxr-xr-xdgit-badcommit-fixup3
1 files changed, 2 insertions, 1 deletions
diff --git a/dgit-badcommit-fixup b/dgit-badcommit-fixup
index 08b6e37..ec6f57c 100755
--- a/dgit-badcommit-fixup
+++ b/dgit-badcommit-fixup
@@ -144,12 +144,13 @@ 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);
open U, "|git update-ref -m 'dgit bad commit fixup' --stdin" or die $!;