chiark
/
gitweb
/
~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Catch early trying rebasing to unknown ref, and add testcase.
[stgit]
/
t
/
t2200-rebase.sh
diff --git
a/t/t2200-rebase.sh
b/t/t2200-rebase.sh
index 882572cc9e9679b0eef42fbd487ffe478d725804..c142e08d1934f68b23bb6671a68015012ded4c09 100755
(executable)
--- a/
t/t2200-rebase.sh
+++ b/
t/t2200-rebase.sh
@@
-31,4
+31,16
@@
test_expect_success \
test `stg applied | wc -l` = 1
'
+test_expect_failure \
+ 'Attempt rebase to non-existing commit' \
+ '
+ stg rebase not-a-ref
+ '
+
+test_expect_success \
+ 'Check patches were re-applied' \
+ '
+ test $(stg applied | wc -l) = 1
+ '
+
test_done