Граф коммитов

5 Коммитов

Автор SHA1 Сообщение Дата
Mislav Marohnić 2da8235c10 [remotes] Fix parsing `~/.ssh/config` on Windows
Use `homedir.Dir()` instead of `Getenv("HOME")` on Windows to look up
`~/.ssh/config` in the correct location.
2019-09-20 22:43:59 +02:00
Mislav Marohnić 6d7f6c1a45 Allow specifying a literal `%h` in `HostName` ssh config 2018-11-09 15:17:53 +01:00
Mislav Marohnić 5886837431 Expand tokens found in ssh config `HostName`
Per "TOKENS" section in ssh_config(5)

Fixes #1936
2018-11-09 12:52:04 +01:00
Jean-Charles Sisk c1ad7a0ad9 make ssh config reader case-insensitive 2015-03-03 19:06:10 -05:00
Jingwen Owen Ou aab2e5f9d3 Ignore replacing ssh host that fixes limited network
ssh.github.com is a hack for people on limited networks to be able to use SSH through HTTPS port. We should ignore replacing it when constructing URLs.

As part of the fix, refactor into SSHConfig and SSHConfigReader to make code testable. It also fixes a bug on `hostReStr` that doesn’t match the “Hostname” string in ssh config.

Issue: https://github.com/github/hub/issues/672
2014-11-03 08:42:00 -08:00