X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/blobdiff_plain/5f594e90e9a0867e1b87ffb8b0a077152246b56c..6ce2faa0ac6e5de67cedee09e257e69f9ebff1e8:/t/t1202-push-undo.sh?ds=sidebyside diff --git a/t/t1202-push-undo.sh b/t/t1202-push-undo.sh index 039103a..b602643 100755 --- a/t/t1202-push-undo.sh +++ b/t/t1202-push-undo.sh @@ -21,7 +21,7 @@ test_expect_success \ ' stg new foo -m foo && echo foo > test && - stg add test && + git add test && stg refresh ' @@ -30,7 +30,7 @@ test_expect_success \ ' stg new bar -m bar && echo bar > test && - stg add test && + git add test && stg refresh ' @@ -52,4 +52,19 @@ test_expect_success \ 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 && + git add newfile && + rm newfile && + stg push --undo + ' + test_done