X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/blobdiff_plain/89f647446f996f7846cbc56526451bf61a1a940c..40bd629038e0166f931c4e39b1ee5511d6dc18c1:/t/t1300-uncommit.sh diff --git a/t/t1300-uncommit.sh b/t/t1300-uncommit.sh index 519234e..85408fd 100755 --- a/t/t1300-uncommit.sh +++ b/t/t1300-uncommit.sh @@ -19,7 +19,7 @@ test_expect_success \ ' stg new foo -m "Foo Patch" && echo foo > test && - stg add test && + git add test && stg refresh ' @@ -28,7 +28,7 @@ test_expect_success \ ' stg new bar -m "Bar Patch" && echo bar > test && - stg add test && + git add test && stg refresh ' @@ -70,4 +70,12 @@ test_expect_success \ [ "$(stg id foo-patch//top)" = "$(stg id bar-patch//bottom)" ] && stg commit ' + +test_expect_success \ + 'Uncommit the patches with --to' ' + stg uncommit --to HEAD^ && + [ "$(stg id foo-patch//top)" = "$(stg id bar-patch//bottom)" ] && + stg commit +' + test_done