chiark
/
gitweb
/
~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix "stg branch --delete" on a nonexistent branch
[stgit]
/
t
/
t1005-branch-delete.sh
diff --git
a/t/t1005-branch-delete.sh
b/t/t1005-branch-delete.sh
index 00fc9ebd758eb0fa80d57d4288803445448a1d74..e061bafe4dcbe8101336328679fbd596a0da0e51 100755
(executable)
--- a/
t/t1005-branch-delete.sh
+++ b/
t/t1005-branch-delete.sh
@@
-19,6
+19,10
@@
test_expect_success 'Create a non-StGIT branch and delete it' '
stg branch --delete 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)" ]
'
test_expect_success 'Make sure the branch ref was deleted' '
[ -z "$(git show-ref | grep master | tee /dev/stderr)" ]
'