chiark / gitweb /
git-debrebase: Do not try split brain gdr make-patches
[dgit.git] / dgit
diff --git a/dgit b/dgit
index 1f1b0f59b432484f63c823b8345ab42493a3ba26..5e9d7114bd3b143c40d76aec609c0b3c52ad4923 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -4235,6 +4235,15 @@ END
     my $actualhead = git_rev_parse('HEAD');
 
     if (branch_is_gdr_unstitched_ff($symref, $actualhead, $archive_hash)) {
+       if (quiltmode_splitbrain()) {
+           my ($ffq_prev, $gdrlast) = branch_gdr_info($symref, $actualhead);
+           fail <<END;
+Branch is managed by git-debrebase ($ffq_prev
+exists), but quilt mode ($quilt_mode) implies a split view.
+Pass the right --quilt option or adjust your git config.
+Or, maybe, run git-debrebase forget-was-ever-debrebase.
+END
+       }
        runcmd_ordryrun_local @git_debrebase, 'stitch';
        $actualhead = git_rev_parse('HEAD');
     }