X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/22037590baa995704b6cc08d844e024c85c7c578..d0329a7785d86495fd02ca595d9cb94fc67cdf4d:/t/t2200-rebase.sh?ds=sidebyside diff --git a/t/t2200-rebase.sh b/t/t2200-rebase.sh index e2d9d9a..adbf242 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 `git rev-parse bases/stack` = `git rev-parse master~1` + test `stg id stack:{base}` = `git rev-parse master~1` && + test `stg series --applied -c` = 1 + ' + +test_expect_success \ + 'Attempt rebase to non-existing commit' \ + ' + command_error stg rebase not-a-ref + ' + +test_expect_success \ + 'Check patches were re-applied' \ + ' + test $(stg series --applied -c) = 1 ' test_done