mirror of
https://git.proxmox.com/git/libgit2
synced 2026-01-06 22:58:58 +00:00
remote: Fix connected test
This commit is contained in:
parent
bb34a93621
commit
b233714360
@ -241,7 +241,7 @@ int git_remote_ls(git_remote *remote, git_headlist_cb list_cb, void *payload)
|
||||
{
|
||||
assert(remote);
|
||||
|
||||
if (!remote->transport)
|
||||
if (!remote->transport || !remote->transport->connected)
|
||||
return git__throw(GIT_ERROR, "The remote is not connected");
|
||||
|
||||
return remote->transport->ls(remote->transport, list_cb, payload);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user