From: Ian Jackson Date: Fri, 6 Jan 2017 16:22:28 +0000 (+0000) Subject: dgit-badcommit-fixup: Do update sameness filtering a bit later X-Git-Tag: archive/debian/2.16~20 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=e2839a09e5eb2fc805669586554aa0a3f241c18a dgit-badcommit-fixup: Do update sameness filtering a bit later Signed-off-by: Ian Jackson --- diff --git a/dgit-badcommit-fixup b/dgit-badcommit-fixup index 08b6e376..ec6f57c7 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 $!;