X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/blobdiff_plain/bd69feaf7c3c94b6e7e216ea8091064af9cdfa97..a02ba4077f12578fe31c99d903488804a656e1c4:/t/t2200-rebase.sh diff --git a/t/t2200-rebase.sh b/t/t2200-rebase.sh index c142e08..d9b6faf 100755 --- a/t/t2200-rebase.sh +++ b/t/t2200-rebase.sh @@ -43,4 +43,20 @@ test_expect_success \ test $(stg applied | wc -l) = 1 ' +test_expect_success \ + 'Rebase to next commit' \ + ' + stg rebase master && + test $(stg id base@stack) = $(git rev-parse master) + ' + +test_expect_success \ + 'Commit the patch and rebase again' \ + ' + stg commit && + git tag committed-here && + stg rebase master && + test $(stg id base@stack) = $(git rev-parse master) + ' + test_done