> + sshUser, _ := conf.Get("hg.sr.ht::dispatch", "/usr/bin/hgsrht-keys")> + sshUser = strings.Split(sshUser, ":")[0]
It's unintuitive, but I believe all the ssh key executables are under
`git.sr.ht::dispatch` for historical reasons. So I don't think this will
ever get anything, unless something has changed that I don't know about?
On Sat, Apr 30, 2022 at 05:27:13PM -0700, Ludovic Chabant wrote:
> It's unintuitive, but I believe all the ssh key executables are under> `git.sr.ht::dispatch` for historical reasons. So I don't think this will> ever get anything, unless something has changed that I don't know about?
While it is true that the config has the "git.sr.ht::dispatch" entry,
the actual code uses "hg.sr.ht::dispatch" as the section [0][1], so I
thought that the config file is not up-to-date. But since those two
lookups fall back to a default value, it could very well be that
"hg.sr.ht::dispatch" section does not exist at all.
Will send a version two, that corrects my first patch and a second one
that corrects the python code.
[0]: https://hg.sr.ht/~sircmpwn/hg.sr.ht/browse/hgsrht/urls.py?rev=tip#L5
[1]: https://hg.sr.ht/~sircmpwn/hg.sr.ht/browse/hgsrht/submit.py?rev=tip#L74
> While it is true that the config has the "git.sr.ht::dispatch" entry,> the actual code uses "hg.sr.ht::dispatch" as the section [0][1]
Ah right, I believe that code is wrong indeed.
Thanks for the patches! Merged v2 of this, and the other one, as
f70a9cacb505 and 6584a267226c