libgit2/libgit2 — comment on commit d88d4311c7e08ad0d38edae006b50e2a548c937d
File: src/remote.c line 245
By carlosmn:

You can have a transport and still not be connected, a better test would be more like `!remote->transport || !remote->transport->connected`