From: Ian Jackson Date: Mon, 20 May 2019 22:52:00 +0000 (+0100) Subject: dgit: quilt fixup: Move split brain branch creation out a bit X-Git-Tag: archive/debian/9.0~137 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=2ed788312403c831c0b7fdffcfce708434cfe472;p=dgit.git dgit: quilt fixup: Move split brain branch creation out a bit Move the playtree git branch, and the setting $split_brain from quiltify_splitbrain (inside quilt_fixup_multipatch, conditional on quiltmode_splitbrain) to quilt_fixup_multipatch. This is still not quite right - it needs to be further out, because it should affect quilt_fixup_singlepatch too. Right now singlepatch DTWT in split brain mode. No functional change for now, anyway. Signed-off-by: Ian Jackson --- diff --git a/dgit b/dgit index cf12faea..66b16bbf 100755 --- a/dgit +++ b/dgit @@ -5400,10 +5400,7 @@ sub quiltify_splitbrain ($$$$$$$) { local $ENV{GIT_AUTHOR_EMAIL} = $authline[1]; local $ENV{GIT_AUTHOR_DATE} = $authline[2]; - die if $split_brain; die unless $do_split_brain; - runcmd @git, qw(checkout -q -b dgit-view); - $split_brain = 1; my $fulldiffhint = sub { my ($x,$y) = @_; @@ -6225,6 +6222,11 @@ END push @failsuggestion, [ 'origs', __ "Maybe orig tarball(s) are not identical to git representation?" ]; + if ($do_split_brain) { + runcmd @git, qw(checkout -q -b dgit-view); + die if $split_brain; + $split_brain = 1; + } if (quiltmode_splitbrain()) { quiltify_splitbrain($clogp, $unapplied, $headref, $oldtiptree, $diffbits, \%editedignores,