Get the configuration file for this repository.
If a configuration file has not been set, the default config set for the repository will be returned, including global and system configurations (if they are available).
The configuration file must be freed once it's no longer being used by the user.
0, or an error code