X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/16dcfb85fbcbb4a961ed18f8e69d3cc2387c33df..130df01aee26a4bfca276047ae1ba914352453c5:/t/t0001-subdir-branches.sh?ds=sidebyside diff --git a/t/t0001-subdir-branches.sh b/t/t0001-subdir-branches.sh old mode 100644 new mode 100755 index e464436..1685233 --- a/t/t0001-subdir-branches.sh +++ b/t/t0001-subdir-branches.sh @@ -14,7 +14,7 @@ containing slashes (that is, branches living in a subdirectory of test_expect_success 'Create a patch' \ 'stg init && echo "foo" > foo.txt && - stg add foo.txt && + git add foo.txt && stg new foo -m "Add foo.txt" && stg refresh' @@ -50,10 +50,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