diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2017-01-06 18:09:27 +0000 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2017-01-06 18:32:14 +0000 |
commit | 1bdb8dcb25eb15fd197f6466c15105dccf11c52b (patch) | |
tree | bae136b185b5bd40f5a5320585d0875a6240ec41 | |
parent | fad2273acdda6c4343cd9c27f037cd3fb64d7c6d (diff) |
dgit-badcommit-fixup: Now seems to work
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
-rwxr-xr-x | dgit-badcommit-fixup | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/dgit-badcommit-fixup b/dgit-badcommit-fixup index 98720e5..72c719b 100755 --- a/dgit-badcommit-fixup +++ b/dgit-badcommit-fixup @@ -160,7 +160,12 @@ sub edit_rewrite_map ($) { close M or die $!; } - foreach my $up (@updates) { + foreach my $oldc (keys %memo) { + my $newc = $memo{$oldc}; + next if $oldc eq $newc; + $map{$oldc} = $newc; + } + foreach my $up (@updates) { # catches tags $map{ $up->[1] } = $up->[2]; } |