From 7f1d8a2f4545daba6952981e4836b902b32d2005 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 23 Jul 2019 16:03:13 +0100 Subject: [PATCH] dgit: Provide --for-push option This is much more conveient and in some cases sensible than -cdgit-distro.DISTRO.readonly=0 Signed-off-by: Ian Jackson --- dgit | 3 +++ dgit.1 | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/dgit b/dgit index 924428cb..ca6fe56a 100755 --- a/dgit +++ b/dgit @@ -7604,6 +7604,9 @@ sub parseopts () { f_ "%s: warning: ignoring unknown force option %s\n", $us, $_; $_=''; + } elsif (m/^--for-push$/s) { + push @ropts, $_; + $access_forpush = 1; } elsif (m/^--config-lookup-explode=(.+)$/s) { # undocumented, for testing push @ropts, $_; diff --git a/dgit.1 b/dgit.1 index f099ed0f..a3c2549d 100644 --- a/dgit.1 +++ b/dgit.1 @@ -1327,6 +1327,12 @@ Force on or off the use of the absurd git-apply emulation when running gbp pq import when importing a package from a .dsc. See Debian bug #841867. +.TP +.BR \-\-for\-push +Override the dgit-distro.distro.readonly configuration setting, +to specify that we have read/write access +and should use the corresponding git and achive access approach +even if the operation is a read-only one. .SH CONFIGURATION dgit can be configured via the git config system. You may set keys with git-config (either in system-global or per-tree -- 2.30.2