Niels Thykier writes ("Bug#1093426: dgit: How to specify a different dgit 
upload host?"):
> I am not sure how to convince `dgit` to use that host instead of 
> `ftp-master` and it explicit passes the host, so it is not possible for 
> me to tweak the default in `dput`'s config files either (I have to 
> replace the `ftp-master` configuration with `ssh-upload`, which is quite 
> heavy handed).

Hi.  Thanks for the report.  We want everything to be smooth, so we
want to conveniently support your use case.  (Although, ftpmaster
seems reliable to me, so whatever is going wrong with it for you is
perhaps related to your local network environment.)

> I checked `man dgit` but I could not find any obvious way to do it other 
> than via the `--dput=wrapper`. However, it does seem to be more involved 
> that it should have been and implies that I alias `dgit` or manually 
> pass the option each time.

You can put these options in your *dgit* configuration, too.  That's
in your git config.  There's dgit-distro.debian.cmd-dput, for
example.  See the bottom of dgit(1) where the config options are
documented.

But you probably don't want to do that because there is also
"upload-host" in the dgit config.

I think something like
  git config --global dgit-distro.debian.upload-host ssh-upload
should work, if I understand correctly what needs to change about the
way dgit invokes dput.

> Have I overlooked a simpler solution? If not, would it be possible for 
> `dgit` to enable an easier way to change the default upload host?

I think the (d)git config dgit-distro.distro.upload-host is indeed the
answer to this question.

Hope this helps.

Ian.

-- 
Ian Jackson <ijack...@chiark.greenend.org.uk>   These opinions are my own.  

Pronouns: they/he.  If I emailed you from @fyvzl.net or @evade.org.uk,
that is a private address which bypasses my fierce spamfilter.

Reply via email to