chiark / gitweb /
Fix error in status.py when calling git.resolved
[stgit] / t / t1005-branch-delete.sh
index 7a0872edd0646b3b7df884bf6a769e680fd1c7d8..e061bafe4dcbe8101336328679fbd596a0da0e51 100755 (executable)
@@ -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)" ]
     '