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