git-lfs/lfshttp
brian m. carlson a0190a6020
lfshttp: don't strip off initial slash on SSH commands
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.
2021-07-20 19:16:00 +00:00
..
standalone fs: be a little less aggressive with cleanup 2021-04-30 14:36:06 +00:00
body.go lfsapi: extract new lfshttp package 2018-09-11 14:51:29 -07:00
certs_darwin.go lfsapi: extract new lfshttp package 2018-09-11 14:51:29 -07:00
certs_nix.go Make lfshttp package builds more portable 2021-04-14 18:28:10 +00:00
certs_test.go lfshttp: cache clients based on host and access type 2019-12-09 15:35:52 +00:00
certs_windows.go lfsapi: extract new lfshttp package 2018-09-11 14:51:29 -07:00
certs.go Cert dir/file access: translate cygwin path. 2021-04-09 10:56:27 +02:00
client_test.go lfshttp: support http.version 2019-10-29 19:47:20 +00:00
client.go lfshttp: use a separate struct for SSH metadata 2021-07-20 18:37:31 +00:00
cookies.go Use different parser for cookiejar files 2019-10-27 16:48:15 -05:00
endpoint.go lfshttp: don't strip off initial slash on SSH commands 2021-07-20 19:16:00 +00:00
errors.go Add integration tests; check other places where 429 could occur 2019-01-07 12:27:02 +03:00
lfshttp.go lfsapi: extract new lfshttp package 2018-09-11 14:51:29 -07:00
proxy_test.go lfshttp/proxy: consider scheme of request URL when choosing proxy 2021-02-03 20:27:39 +00:00
proxy.go lfshttp/proxy: consider scheme of request URL when choosing proxy 2021-02-03 20:27:39 +00:00
retries_test.go lfsapi: extract new lfshttp package 2018-09-11 14:51:29 -07:00
retries.go lfsapi: extract new lfshttp package 2018-09-11 14:51:29 -07:00
ssh_test.go Move much of SSH code into a separate package 2021-07-20 18:37:31 +00:00
ssh.go ssh: support concurrent transfers using the pure SSH protocol 2021-07-20 19:15:59 +00:00
stats_test.go lfsapi: extract new lfshttp package 2018-09-11 14:51:29 -07:00
stats.go Fix Typos 2019-07-24 07:17:40 +00:00
verbose_test.go lfsapi: extract new lfshttp package 2018-09-11 14:51:29 -07:00
verbose.go lfsapi: extract new lfshttp package 2018-09-11 14:51:29 -07:00