X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/b13d080c1b6f59d78c276932f72da1971cc6fd2d..67e5c1c662186cd78b193d87cecd1d3097b909da:/t/t2200-rebase.sh?ds=sidebyside diff --git a/t/t2200-rebase.sh b/t/t2200-rebase.sh index 882572c..c142e08 100755 --- a/t/t2200-rebase.sh +++ b/t/t2200-rebase.sh @@ -31,4 +31,16 @@ test_expect_success \ test `stg applied | wc -l` = 1 ' +test_expect_failure \ + 'Attempt rebase to non-existing commit' \ + ' + stg rebase not-a-ref + ' + +test_expect_success \ + 'Check patches were re-applied' \ + ' + test $(stg applied | wc -l) = 1 + ' + test_done