def _get_auth_for_host(self, host): for domain, creds in self.gitcookies.iteritems(): if cookielib.domain_match(host, domain): return (creds[0], None, creds[1]) return self.netrc.authenticators(host)