From 75581df3d6c82c3727971756a028b7b2a4d97dce Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 20 May 2019 23:02:25 +0100 Subject: dgit: Separate out build_check_quilt_splitbrain The only effect of this is to move the tag format check from before the main work of build_maybe_quilt_fixup to later, and to not check it at all for `dgit quilt-fixup'. We don't really care about this any more; this tag format stuff is obsolete and we will delete it at some point... Signed-off-by: Ian Jackson --- dgit | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) (limited to 'dgit') diff --git a/dgit b/dgit index 97557ce..db56b50 100755 --- a/dgit +++ b/dgit @@ -176,6 +176,7 @@ autoflush STDOUT 1; our $supplementary_message = ''; our $split_brain = 0; +our $do_split_brain = 0; END { local ($@, $?); @@ -5394,6 +5395,7 @@ sub quiltify_splitbrain ($$$$$$$) { 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; @@ -5783,12 +5785,7 @@ sub build_maybe_quilt_fixup () { check_for_vendor_patches(); - if (quiltmode_splitbrain) { - fail <