mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-21 12:24:58 +00:00
local transport: catch double-opens
Combinations of connect + fetch can call local_open multiple times. Detect this and skip the initialization stage.
This commit is contained in:
parent
c81e4adfd7
commit
5187b609ba
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user