Get a list of refs at the remote
The remote (or more exactly its transport) must be connected. The memory belongs to the remote.
the remote
GIT_SUCCESS or an error code