X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/89f647446f996f7846cbc56526451bf61a1a940c..7438e0983a0fb852697d7162f6a1812d7ebb0c25:/t/t1300-uncommit.sh diff --git a/t/t1300-uncommit.sh b/t/t1300-uncommit.sh index 519234e..2e7ff21 100755 --- a/t/t1300-uncommit.sh +++ b/t/t1300-uncommit.sh @@ -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