a0190a6020
When we process an SSH URL, we intentionally strip off the slash at the beginning of the URL. While that was convenient for git-lfs-authenticate, it also prevents us from handling an absolute path in git-lfs-transfer, since the path will have its leading slash stripped off and will therefore be relative. Instead, let's adopt Git's behavior, which is to not remove the leading slash. This is an incompatible change, but we're about to do a major release, so it's a good time to make it. This will affect both git-lfs-transfer and git-lfs-authenticate commands, but at least GitHub already supports the proper syntax. Note that since we process the non-URL form of SSH remotes by converting them to a URL and then parsing, let's strip off the leading slash when we process that form, since there we do have the ability to distinguish between absolute and relative paths. Update the lfs-ssh-echo binary to handle this new format. |
||
---|---|---|
.. | ||
standalone | ||
body.go | ||
certs_darwin.go | ||
certs_nix.go | ||
certs_test.go | ||
certs_windows.go | ||
certs.go | ||
client_test.go | ||
client.go | ||
cookies.go | ||
endpoint.go | ||
errors.go | ||
lfshttp.go | ||
proxy_test.go | ||
proxy.go | ||
retries_test.go | ||
retries.go | ||
ssh_test.go | ||
ssh.go | ||
stats_test.go | ||
stats.go | ||
verbose_test.go | ||
verbose.go |