~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix typo
[stgit]
/
t
/
t1202-push-undo.sh
diff --git
a/t/t1202-push-undo.sh
b/t/t1202-push-undo.sh
index
335b554
..
edfa710
100755
(executable)
--- a/
t/t1202-push-undo.sh
+++ b/
t/t1202-push-undo.sh
@@
-40,10
+40,10
@@
test_expect_success \
stg pop --all
'
stg pop --all
'
-test_expect_
failure
\
+test_expect_
success
\
'Push the second patch with conflict' \
'
'Push the second patch with conflict' \
'
- stg push bar
+
!
stg push bar
'
test_expect_success \
'
test_expect_success \
@@
-52,4
+52,19
@@
test_expect_success \
stg push --undo
'
stg push --undo
'
+test_expect_success \
+ 'Check the push after undo fails as well' \
+ '
+ ! stg push bar
+ '
+
+test_expect_success \
+ 'Undo with disappeared newborn' \
+ '
+ touch newfile &&
+ stg add newfile &&
+ rm newfile &&
+ stg push --undo
+ '
+
test_done
test_done