3 test_description
='Test "stg goto" with hidden patches'
7 test_expect_success
'Initialize StGit stack' '
11 stg new -m hidden-patch &&
14 stg hide hidden-patch &&
15 test "$(echo $(stg series --all))" = "! hidden-patch"
18 test_expect_success
'Refuse to go to a hidden patch' '
19 command_error stg goto hidden-patch &&
20 test "$(echo $(stg series --all))" = "! hidden-patch"