Call git_remote_disconnect if remote is connected