X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=blobdiff_plain;f=dgit;h=5e9d7114bd3b143c40d76aec609c0b3c52ad4923;hp=a2ca2dbd6056082d3fb5d2762aa5698438ac7a0c;hb=b9ef2453ea950bd60ddb52e2253cdf762f34534d;hpb=5e1146ab267afe371d108582671546c7fe096a50 diff --git a/dgit b/dgit index a2ca2dbd..5e9d7114 100755 --- a/dgit +++ b/dgit @@ -311,7 +311,7 @@ sub branch_is_gdr_unstitched_ff ($$$) { my ($symref, $head, $ancestor) = @_; my ($ffq_prev, $gdrlast) = branch_gdr_info($symref, $head); return 0 unless $ffq_prev; - return 0 unless is_fast_fwd $ancestor, $ffq_prev; + return 0 unless !defined $ancestor or is_fast_fwd $ancestor, $ffq_prev; return 1; } @@ -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 <