X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/09d8f8c55a4193fbabba723c2f257b447c0edaf4..9777fa365ba62819bd93a50255e3694c03107e0d:/t/t1002-branch-clone.sh?ds=sidebyside diff --git a/t/t1002-branch-clone.sh b/t/t1002-branch-clone.sh index 12dd0e6..1303b41 100755 --- a/t/t1002-branch-clone.sh +++ b/t/t1002-branch-clone.sh @@ -3,7 +3,7 @@ # Copyright (c) 2006 Catalin Marinas # -test_description='Branch renames. +test_description='Branch cloning. Exercises branch cloning options. ' @@ -18,10 +18,10 @@ test_expect_success \ git commit -a -m bar ' -test_expect_failure \ +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