Commit 5187b609 by Carlos Martín Nieto

local transport: catch double-opens

Combinations of connect + fetch can call local_open multiple
times. Detect this and skip the initialization stage.
parent c81e4adf
......@@ -194,6 +194,9 @@ static int local_connect(
GIT_UNUSED(cred_acquire_cb);
GIT_UNUSED(cred_acquire_payload);
if (t->connected)
return 0;
t->url = git__strdup(url);
GITERR_CHECK_ALLOC(t->url);
t->direction = direction;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment