chiark / gitweb /
Allow "branch --create" to be given a tag id
[stgit] / t / t0001-subdir-branches.sh
index 1685233401df71738c5ef935a594cc29939dab2e..0eed3a44088c1d7adede76ab90d090d04b86fba6 100755 (executable)
@@ -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 &&