diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-05-31 15:36:04 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-05-31 16:05:10 +0100 |
commit | ed13a339560efb554f9afc9419ffd8157e357727 (patch) | |
tree | a78270addd92d68d35bc1c95d0fd6bf4ec5a9f3f /dgit | |
parent | 6b8c969adabf3b74d9deb836e5377a3e01c2a57b (diff) |
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.
Diffstat (limited to 'dgit')
-rwxr-xr-x | dgit | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 ---------- |