git-lfs/tq
Chris Darroch 2ecc5533e1 tq/manifest.go: lookup standalone endpoint once
The findStandaloneTransfer() function of the "tq" package was updated
in commit 28f9b73d2f2bc529ce4385d372ab900e3763b854 of PR #3905 to
determine whether to use the built-in file standalone transfer adapter
based on the actual endpoint URL, taking into account settings like
"lfs.url" which override the endpoint URL we would otherwise construct
from the current remote's URL.  However, the code still checked the
"lfs.<url>.standaloneTransferAgent" setting using the URL constructed
from the remote's URL, and so called both the Endpoint() and
RemoteEndpoint() methods of the EndpointFinder interface.

Then in commit 594f8e386cce3441e06c9094ab5e251f0e07ca1f of PR #4446,
when the pure SSH transfer protocol was introduced, the call to
the RemoteEndpoint() method was replaced with Endpoint(), which was
done with the intent that it would honour "lfs.url" settings as well.

However, this resulted in duplicate calls to Endpoint(), so we can
remove one of them now.

Note that the change in commit 594f8e386cce3441e06c9094ab5e251f0e07ca1f
of PR #4446 implies that the URL used when looking for
"lfs.<url>.standaloneTransferAgent" settings is the URL as fully
determined by settings such as "lfs.url" that override what
would be otherwise constructed based on the remote's URL.  We
expect to add documentation to this effect in a subsequent PR.
2023-10-17 10:55:16 -07:00
..
schemas tq,lfsapi/ssh: convert int64 to int 2017-04-05 14:46:45 -06:00
adapterbase.go make additional message strings translatable 2022-01-29 22:36:19 -08:00
api_test.go tq/api_test.go: remove unneeded translations 2022-01-29 22:32:57 -08:00
api.go tq: make Manifest an interface 2023-03-23 16:55:57 +00:00
basic_download.go tq: make Manifest an interface 2023-03-23 16:55:57 +00:00
basic_upload.go tq: make Manifest an interface 2023-03-23 16:55:57 +00:00
custom_test.go Set package version to v3 2021-09-02 20:41:08 +00:00
custom.go tq: make Manifest an interface 2023-03-23 16:55:57 +00:00
errors_test.go tq/errors: implement MalformedObjectError 2017-03-24 14:36:59 -06:00
errors.go tq: make strings translatable 2022-01-18 17:38:25 +00:00
manifest_test.go Set package version to v3 2021-09-02 20:41:08 +00:00
manifest.go tq/manifest.go: lookup standalone endpoint once 2023-10-17 10:55:16 -07:00
meter.go avoid extra message format parsing where possible 2022-01-29 22:32:58 -08:00
ssh.go tq: make Manifest an interface 2023-03-23 16:55:57 +00:00
transfer_queue_test.go tq: add exponential backoff for retries 2020-04-15 14:10:16 -07:00
transfer_queue.go tq: make Manifest an interface 2023-03-23 16:55:57 +00:00
transfer_test.go tq/transfer_test.go: enable and fix all tests 2023-07-26 17:58:12 -07:00
transfer.go tq/transfer: copy Id and Token 2023-10-02 16:22:02 -04:00
tus_upload.go tq: make Manifest an interface 2023-03-23 16:55:57 +00:00
verify_test.go Set package version to v3 2021-09-02 20:41:08 +00:00
verify.go Set package version to v3 2021-09-02 20:41:08 +00:00