#!/bin/bash set -e . tests/lib t-setup-import examplegit cd example suite=stable t-commit 'No changes, just send to stable' '' stable t-make-badcommit git reset --hard $badcommit t-dgit -wgf build t-dgit push --overwrite=1.2 stable t-archive-process-incoming stable rstable=refs/remotes/dgit/dgit/stable t-dgit fetch stable t-has-parent-or-is $rstable $badcommit cd $tmp/git/$p.git ${DGIT_BADCOMMIT_FIXUP} --real cd $tmp/$p ${DGIT_BADCOMMIT_FIXUP} --real t-dgit fetch stable t-expect-fail "child $rstable lacks parent $badcommit" \ t-has-parent-or-is $rstable $badcommit t-ok