X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/85b0588fae6d7baba9a2e49949c7e250cc66f2bc..b029e3cca0ccda94c9256a4b86efc8d679235a1d:/t/t0001-subdir-branches.sh diff --git a/t/t0001-subdir-branches.sh b/t/t0001-subdir-branches.sh old mode 100644 new mode 100755 index fac6339..0eed3a4 --- a/t/t0001-subdir-branches.sh +++ b/t/t0001-subdir-branches.sh @@ -38,10 +38,11 @@ test_expect_success 'Try new form of id with slashy branch' \ stg id foo@x/y/z && stg id foo@x/y/z//top' -test_expect_failure 'Try old id with slashy branch' \ - 'stg id foo/ || - stg id foo/top || - stg id foo@x/y/z/top' +test_expect_success 'Try old id with slashy branch' ' + ! stg id foo/ && + ! stg id foo/top && + ! stg id foo@x/y/z/top + ' test_expect_success 'Create patch in slashy branch' \ 'echo "bar" >> foo.txt && @@ -50,10 +51,11 @@ test_expect_success 'Create patch in slashy branch' \ test_expect_success 'Rename branches' \ 'stg branch --rename master goo/gaa && - test ! -e .git/refs/heads/master && + ! git show-ref --verify --quiet refs/heads/master && stg branch --rename goo/gaa x1/x2/x3/x4 && - test ! -e .git/refs/heads/goo && + ! git show-ref --verify --quiet refs/heads/goo/gaa && stg branch --rename x1/x2/x3/x4 servant && - test ! -e .git/refs/heads/x1' + ! git show-ref --verify --quiet refs/heads/x1/x2/x3/x4 +' test_done