From d51d076759bf65a31b74829e9afce28353b2379b Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 9 Oct 2013 08:37:12 +0100 Subject: finish support and docs for DGIT_SSH etc. config --- dgit.1 | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'dgit.1') diff --git a/dgit.1 b/dgit.1 index 2f7cecc..11e2a5d 100644 --- a/dgit.1 +++ b/dgit.1 @@ -237,11 +237,27 @@ Specifies alternative programs to use instead of .BR dpkg-genchanges , .BR sbuild , .BR gpg , +.BR ssh , or .BR mergechanges . For dpkg-buildpackage, dpkg-genchanges, mergechanges and sbuild, this applies only when the program is invoked directly by dgit. + +For ssh, the default value is taken from the +.B DGIT_SSH +or +.B GIT_SSH +environment variables, if set (see below). And, for ssh, when accessing the +archive and dgit-repos, this command line setting is overridden by the +git config variables +.BI dgit-distro. distro .ssh +and +.B .dgit.default.ssh +(which can in turn be overridden with -c). Also, when dgit is using +git to access dgit-repos, only git's idea of what ssh to use (eg, +.BR GIT_SSH ) +is relevant. .TP .RI \fB--dget:\fR option |\fB--dput:\fR option |... Specifies a single additional option to pass to @@ -252,6 +268,7 @@ Specifies a single additional option to pass to .BR dpkg-buildpackage , .BR dpkg-genchanges , .BR sbuild , +.BR ssh , or .BR mergechanges . Can be repeated as necessary. @@ -261,6 +278,8 @@ this applies only when the program is invoked directly by dgit. Usually, for passing options to dpkg-genchanges, you should use .BR --ch: \fIoption\fR. +See note above regarding ssh. + NB that --gpg:option is not supported (because debsign does not have that facility). But see -k. .TP @@ -547,6 +566,21 @@ on the dgit command line. .BR dgit.default. * for each .BR dgit-distro. \fIdistro\fR . * +.SH ENVIRONMENT VARIABLES +.TP +.BR DGIT_SSH ", " GIT_SSH +specify an alternative default program (and perhaps arguments) to use +instead of ssh. DGIT_SSH is consulted first and may contain arguments; +if it contains any whitespace will be passed to the shell. GIT_SSH +specifies just the program; no arguments can be specified, so dgit +interprets it the same way as git does. +See +also the --ssh= and --ssh: options. +.TP +.BR gpg ", " dpkg- "..., " debsign ", " git ", " dget ", " dput ", " LWP::UserAgent +and other subprograms and modules used by dgit are affected by various +environment variables. Consult the documentaton for those programs +for details. .SH BUGS We should be using some kind of vhost/vpath setup for the git repos on alioth, so that they can be moved later if and when this turns out to -- cgit v1.2.3