chiark / gitweb /
Check for disappeared newborn files in git.tree_status (bug #8516)
[stgit] / t / t1300-uncommit.sh
index 519234e88727f0111e5c08f7f798ca74da85e5d1..2e7ff211745d413bb2fee81080407444202fbea0 100755 (executable)
@@ -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