summaryrefslogtreecommitdiff
path: root/dgit
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2015-05-31 15:36:04 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2015-05-31 16:05:10 +0100
commited13a339560efb554f9afc9419ffd8157e357727 (patch)
treea78270addd92d68d35bc1c95d0fd6bf4ec5a9f3f /dgit
parent6b8c969adabf3b74d9deb836e5377a3e01c2a57b (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-xdgit5
1 files changed, 3 insertions, 2 deletions
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 ----------