chiark / gitweb /
Try uncommitting a commit with not exactly one parent
[stgit] / t / t1300-uncommit.sh
index d86e579382a805cdb994e3eb27825da855120148..0d952a77178694c66fef3502173168d74480fe72 100755 (executable)
@@ -78,4 +78,9 @@ test_expect_success \
     stg commit --all
 '
 
+test_expect_failure 'Uncommit a commit with not precisely one parent' '
+    stg uncommit -n 5 ; [ $? = 2 ] &&
+    [ "$(echo $(stg series))" = "" ]
+'
+
 test_done