X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=git-debpush;h=402b1dd6a14d5b13df45fb488f36520acbcf6319;hb=d859eec10fe463619069a01f4489b2a11af31fab;hp=841937510b6f1666cafb52dc43cc490cd102d001;hpb=4bbb0ea95dcf9be8e26f19424ad3b5269a556783;p=dgit.git diff --git a/git-debpush b/git-debpush index 84193751..402b1dd6 100755 --- a/git-debpush +++ b/git-debpush @@ -411,6 +411,20 @@ case "$quilt_mode" in ;; esac +# ---- git-debrebase branch format checks + +# only check branches, since you can't run `git debrebase conclude` on +# non-branches +case "$branch" in + refs/heads/*) + # see "STITCHING, PSEUDO-MERGES, FFQ RECORD" in git-debrebase(5) + ffq_prev_ref="refs/ffq-prev/${branch#refs/}" + if git show-ref --quiet --verify "$ffq_prev_ref"; then + fail_check unstitched \ + "this looks like an unstitched git-debrebase branch, which should not be pushed" + fi +esac + # ---- Summary if $failed_check; then