From: Ian Jackson Date: Thu, 17 Jan 2019 19:22:50 +0000 (+0000) Subject: FIX X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=refs%2Fheads%2Fwip.convert-unapplied;p=dgit.git FIX Signed-off-by: Ian Jackson --- diff --git a/git-debrebase b/git-debrebase index a1f3ded0..f0cd2c88 100755 --- a/git-debrebase +++ b/git-debrebase @@ -2651,7 +2651,8 @@ END in_workarea sub { if ($bare) { runcmd @git, qw(checkout -q -b gdr-internal), $upstream; - read_tree_debian $old_head; + runcmd @git, qw(rm --quiet -rf --ignore-unmatch debian); + runcmd @git, qw(checkout -q), $old_head, qw(debian); runcmd @git, qw(commit --allow-empty -q -m ADD-DEBIAN); } else { runcmd @git, qw(checkout -q -b gdr-internal), $old_head; @@ -2668,6 +2669,9 @@ END ]; # make the anchor merge # the tree is already exactly right + if ($bare) { + runcmd @git, qw(reset -q), $upstream, qw(-- :/ :!/debian); + } $work = make_commit [$work, $upstream], [ 'git-debrebase import: declare upstream', 'First breakwater merge.',