X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/5f594e90e9a0867e1b87ffb8b0a077152246b56c..4a8e79dc3b13208701ca41ac5cfc15bb270238cd:/t/t1002-branch-clone.sh diff --git a/t/t1002-branch-clone.sh b/t/t1002-branch-clone.sh index b0087e9..1303b41 100755 --- a/t/t1002-branch-clone.sh +++ b/t/t1002-branch-clone.sh @@ -21,7 +21,7 @@ test_expect_success \ test_expect_success \ 'Try to create a patch in a GIT branch' \ ' - ! stg new p0 -m "p0" + command_error stg new p0 -m "p0" ' test_expect_success \ @@ -29,16 +29,16 @@ test_expect_success \ ' stg branch --clone foo && stg new p1 -m "p1" && - test $(stg applied -c) -eq 1 + test $(stg series --applied -c) -eq 1 ' test_expect_success \ 'Clone the current StGIT branch' \ ' stg branch --clone bar && - test $(stg applied -c) -eq 1 && + test $(stg series --applied -c) -eq 1 && stg new p2 -m "p2" && - test $(stg applied -c) -eq 2 + test $(stg series --applied -c) -eq 2 ' test_done