X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/16d69115caef1a194384f0f0f668e6789b838909..bb95cfba3b27f4fa1c82998874a9f288c379cb1c:/t/t2200-rebase.sh diff --git a/t/t2200-rebase.sh b/t/t2200-rebase.sh index 52462dd..c142e08 100755 --- a/t/t2200-rebase.sh +++ b/t/t2200-rebase.sh @@ -27,7 +27,20 @@ test_expect_success \ 'Rebase to previous commit' \ ' stg rebase master~1 && - test `stg id base@stack` = `git rev-parse master~1` + test `stg id base@stack` = `git rev-parse master~1` && + 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