From ed13a339560efb554f9afc9419ffd8157e357727 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 31 May 2015 15:36:04 +0100 Subject: Infra: Add dgit-repos-policy-trusting Also add the --deliberately-fresh-repo deliberately, both to the manpage and to dgit's idea of non-fast-forward-ness. Rename the dgit test only deliberatelies to start with TEST-dgit-only- rather than having the -dgit-only at the end. --- dgit | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'dgit') diff --git a/dgit b/dgit index c315c7f..65bc10f 100755 --- 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 ---------- -- cgit v1.2.3