Make 'push --undo' safer
[stgit] / t / t1200-push-modified.sh
index 7847a38..433e452 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
      )
 "