summaryrefslogtreecommitdiff
path: root/dgit-badcommit-fixup
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2017-01-06 16:22:28 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2017-01-06 16:22:28 +0000
commite2839a09e5eb2fc805669586554aa0a3f241c18a (patch)
tree277f35bd78fe450f20974d9f676c07345efac821 /dgit-badcommit-fixup
parent7e4b51864b864f89089828d9a53b042a7f810177 (diff)
dgit-badcommit-fixup: Do update sameness filtering a bit later
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
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 $!;