chiark / gitweb /
Make 'push --undo' safer
[stgit] / t / t1200-push-modified.sh
index 7847a38dd186cfe69828339e24d5cf9e10c9014a..433e4526b92dd7f3bf0c3cc7ff604a076e615ce7 100755 (executable)
@@ -51,7 +51,7 @@ test_expect_failure \
 
 test_expect_success \
     'Rollback the push' \
-    "(cd bar && stg push --undo
+    "(cd bar && stg status --reset && stg push --undo
      )
 "