chiark / gitweb /
Test suite: add some replay prevention tests
[dgit.git] / dgit
diff --git a/dgit b/dgit
index c315c7f1606846ae74dde955052254b3ba5b8f76..65bc10f01f5c369d29b7d7a069999a8cac2fd78b 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -165,8 +165,9 @@ sub deliberately ($) {
 }
 
 sub deliberately_not_fast_forward () {
-    deliberately('not-fast-forward') ||
-       deliberately('TEST-not-fast-forward-dgit-only');
+    foreach (qw(not-fast-forward fresh-repo)) {
+       return 1 if deliberately($_) || deliberately("TEST-dgit-only-$_");
+    }
 }
 
 #---------- remote protocol support, common ----------