1633be6b34
When Git performs a lookup for a key with urlmatch semantics, it matches the default port if none is specified in the URL. However, our code currently doesn't do that, instead having a missing port match only another missing port entry. Let's fix the behavior to match Git's by mapping a missing port to the default port. We add tests for checking both URLs (the config one and the one we're sending data to) to make sure that our code is robust. |
||
---|---|---|
.. | ||
config_test.go | ||
config.go | ||
delayed_environment.go | ||
environment_test.go | ||
environment.go | ||
extension_test.go | ||
extension.go | ||
fetcher.go | ||
git_fetcher_test.go | ||
git_fetcher.go | ||
map_fetcher.go | ||
netrc_nix.go | ||
netrc_windows.go | ||
netrc.go | ||
os_fetcher.go | ||
url_config_test.go | ||
url_config.go | ||
util_nix.go | ||
util_windows.go | ||
version.go |