X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/2bdde74e540085e2c115d6d3dd77afa6d54e78aa..533d85c2f663a7e89816b23c627a118866ab00fb:/t/t1005-branch-delete.sh diff --git a/t/t1005-branch-delete.sh b/t/t1005-branch-delete.sh index 7a0872e..e061baf 100755 --- a/t/t1005-branch-delete.sh +++ b/t/t1005-branch-delete.sh @@ -14,6 +14,15 @@ test_expect_success 'Delete a branch' ' stg branch --delete master ' +test_expect_success 'Create a non-StGIT branch and delete it' ' + git branch bar && + stg branch --delete bar + ' + +test_expect_success 'Delete a nonexistent branch' ' + stg branch --delete bar + ' + test_expect_success 'Make sure the branch ref was deleted' ' [ -z "$(git show-ref | grep master | tee /dev/stderr)" ] '