git-lfs/config
brian m. carlson 1633be6b34
config: map missing port to default for HTTP key lookups
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.
2020-10-14 13:41:40 +00:00
..
config_test.go config: tidy existing files with goimports 2019-09-11 14:37:13 +00:00
config.go config: optionally read .lfsconfig from the repository 2020-08-06 20:04:00 +00:00
delayed_environment.go Fix Typos 2019-07-24 07:17:40 +00:00
environment_test.go config/environment_test: use last value in gitconfig 2017-04-14 13:44:43 -04:00
environment.go add some godocs 2017-10-27 14:10:46 -06:00
extension_test.go lfs: use github.com/stretchr/testify for assertions 2016-05-25 10:43:10 -06:00
extension.go Major refactor to pull things into config, httputil, tools 2016-05-13 17:38:06 +01:00
fetcher.go Fix Typos 2019-07-24 07:17:40 +00:00
git_fetcher_test.go Properly handle config options for URLs with upper case letters 2019-04-02 16:06:14 +00:00
git_fetcher.go config: tidy existing files with goimports 2019-09-11 14:37:13 +00:00
map_fetcher.go config,lfsapi: return last element of gitconfig, not first 2017-04-14 13:33:13 -04:00
netrc_nix.go config: rename netrc files 2017-10-18 14:51:24 -06:00
netrc_windows.go config: rename netrc files 2017-10-18 14:51:24 -06:00
netrc.go *: use patched version of bgetnry/go-netrc 2018-05-25 12:42:02 -07:00
os_fetcher.go Fix Typos 2019-07-24 07:17:40 +00:00
url_config_test.go config: map missing port to default for HTTP key lookups 2020-10-14 13:41:40 +00:00
url_config.go config: map missing port to default for HTTP key lookups 2020-10-14 13:41:40 +00:00
util_nix.go config: add a umask lookup function 2018-10-09 15:11:17 +00:00
util_windows.go config: add a umask lookup function 2018-10-09 15:11:17 +00:00
version.go release: v2.12.0 2020-09-01 13:21:22 +00:00