165
165
# GitHub requires we lie.
166
166
# https://github.com/dulwich/dulwich/issues/562
168
168
elif host == "bazaar.launchpad.net":
169
169
# Don't attempt Git probes against bazaar.launchpad.net; pad.lv/1744830
170
170
raise brz_errors.NotBranchError(transport.base)
171
171
resp = transport.request('GET', url, headers=headers)
172
172
if resp.status in (404, 405):
173
173
raise brz_errors.NotBranchError(transport.base)
176
176
url, 'Unable to handle http code %d' % resp.status)
181
180
raise brz_errors.NotBranchError(transport.base)
182
181
if ct.startswith("application/x-git"):