From: Ian Jackson Date: Tue, 23 Jul 2019 15:03:13 +0000 (+0100) Subject: dgit: Provide --for-push option X-Git-Tag: archive/debian/9.6~15 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=7f1d8a2f4545daba6952981e4836b902b32d2005;p=dgit.git 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 --- 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