summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2019-07-23 16:03:13 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2019-07-23 16:03:13 +0100
commit7f1d8a2f4545daba6952981e4836b902b32d2005 (patch)
tree5c35129430a30e08e3287b73e62c49d206e5e812
parent1451f1261ad4420b46e90a44c3c7cae26432994e (diff)
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 <ijackson@chiark.greenend.org.uk>
-rwxr-xr-xdgit3
-rw-r--r--dgit.16
2 files changed, 9 insertions, 0 deletions
diff --git a/dgit b/dgit
index 924428c..ca6fe56 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 f099ed0..a3c2549 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