Get a list of the configured remotes for a repo
The string array must be freed by the user.
a string array which receives the names of the remotes
the repository to query
0 or an error code