From d93bea01f0863c3fa84a3dea79cb9076dcfd4ff5 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 6 Jan 2017 17:48:38 +0000 Subject: Change name of rewrite map ref (needs an extra / for git) Signed-off-by: Ian Jackson --- dgit-badcommit-fixup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dgit-badcommit-fixup') diff --git a/dgit-badcommit-fixup b/dgit-badcommit-fixup index cd62e68..2708e1c 100755 --- a/dgit-badcommit-fixup +++ b/dgit-badcommit-fixup @@ -196,7 +196,7 @@ foreach my $rline (split /\n/, $refs) { my ($obj, $type, $refname) = $rline =~ m/^(\w+)\s+(\w+)\s+(\S.*)/ or die "$_ ?"; - if ($refname eq 'refs/dgit-rewrite-map') { + if ($refname eq 'refs/dgit-rewrite/map') { $org_rewrite_map = $obj; continue; } @@ -214,7 +214,7 @@ foreach my $rline (split /\n/, $refs) { if ($bare eq 'true') { my $new_rewrite_map = edit_rewrite_map($org_rewrite_map); - push @updates, [ 'refs/dgit-rewrite-map', + push @updates, [ 'refs/dgit-rewrite/map', ($org_rewrite_map // '0'x40), $new_rewrite_map ]; } -- cgit v1.2.1