Skip to content
Snippets Groups Projects
Commit b075dd17 authored by Sam Thursfield's avatar Sam Thursfield
Browse files

Only initialize remote artifact cache connections if needed

This fixes a regression from the canonical-pull-urls branch that was
just merged. The OSTreeCache.__init__() function was connecting to
the cache, which is bad because execution would randomly freeze for
several seconds when the connection was slow.

We now only initialize remote connections where needed; this was
already introduced in 5c2ef6d0 but
had regressed. I renamed the keyword arg from `fetch_remote_refs`
to `use_remote_cache` because it needs to be set for any interaction
with the remote cache, doesn't matter if they are fetches or pushes.
parent 628e9a23
No related branches found
No related tags found
Loading
Pipeline #
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment