Commit b2337143 by Vicent Marti

remote: Fix connected test

parent bb34a936
...@@ -241,7 +241,7 @@ int git_remote_ls(git_remote *remote, git_headlist_cb list_cb, void *payload) ...@@ -241,7 +241,7 @@ int git_remote_ls(git_remote *remote, git_headlist_cb list_cb, void *payload)
{ {
assert(remote); assert(remote);
if (!remote->transport) if (!remote->transport || !remote->transport->connected)
return git__throw(GIT_ERROR, "The remote is not connected"); return git__throw(GIT_ERROR, "The remote is not connected");
return remote->transport->ls(remote->transport, list_cb, payload); return remote->transport->ls(remote->transport, list_cb, payload);
......
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