Improve status help.
[stgit/ydirson.git] / t / t1005-branch-delete.sh
blob7a0872edd0646b3b7df884bf6a769e680fd1c7d8
1 #!/bin/sh
3 test_description='Attempt to delete branches'
5 . ./test-lib.sh
7 stg init
9 test_expect_success 'Create a branch (and switch to it)' '
10 stg branch --create foo
13 test_expect_success 'Delete a branch' '
14 stg branch --delete master
17 test_expect_success 'Make sure the branch ref was deleted' '
18 [ -z "$(git show-ref | grep master | tee /dev/stderr)" ]
21 test_expect_success 'Make sure the branch config was deleted' '
22 [ -z "$(git config -l | grep branch\\.master | tee /dev/stderr)" ]
25 test_expect_success 'Make sure the branch files were deleted' '
26 [ -z "$(find .git -type f | grep master | tee /dev/stderr)" ]
29 test_done