git-lfs/lfsapi
brian m. carlson 600132c4f2
lfsapi: gracefully handle local paths with trailing slash
When we want to handle a local path, we must rewrite it internally into
a `file:///` URL, because we dispatch our standalone transfer agent
based on the URL scheme.  However, once we've looked up an appropriate
URL and formatted it as the scheme prefers, if it contains a trailing
slash, we ignore the entire lookup and replace the URL with the raw one
given, but without the trailing slash.

This behaviour seems a bit bizarre, and it causes us to take a local
path with a trailing slash and treat it not as the `file:///` URL it
needs to be, but as a raw local path, which gets refused.  Let's avoid
this problem by looking at the rewritten URL, and modifying that instead
if we find its trailing slash to be offensive.
2023-06-21 17:43:11 +00:00
..
auth_test.go creds: allow multiple values for a key 2023-06-02 13:25:59 +00:00
auth.go Pass authentication types to Git credential helpers 2023-06-02 13:25:59 +00:00
body.go lfsapi: Ensure requests include Content-Length header if necessary 2017-01-25 08:59:11 -07:00
client.go Set package version to v3 2021-09-02 20:41:08 +00:00
endpoint_finder_test.go Set package version to v3 2021-09-02 20:41:08 +00:00
endpoint_finder.go lfsapi: gracefully handle local paths with trailing slash 2023-06-21 17:43:11 +00:00
kerberos.go Set package version to v3 2021-09-02 20:41:08 +00:00
lfsapi.go commands,lfs{api,http}: uppercase HTTP in messages 2022-01-29 22:25:07 -08:00
response_test.go Set package version to v3 2021-09-02 20:41:08 +00:00