/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/git/__init__.py

  • Committer: Jelmer Vernooij
  • Date: 2020-05-24 00:39:50 UTC
  • mto: This revision was merged to the branch mainline in revision 7504.
  • Revision ID: jelmer@jelmer.uk-20200524003950-bbc545r76vc5yajg
Add github action.

Show diffs side-by-side

added added

removed removed

Lines of Context:
184
184
        resp = transport.request('GET', url, headers=headers)
185
185
        if resp.status in (404, 405):
186
186
            raise brz_errors.NotBranchError(transport.base)
187
 
        elif resp.status == 400 and resp.reason == 'no such method: info':
188
 
            # hgweb :(
189
 
            raise brz_errors.NotBranchError(transport.base)
190
187
        elif resp.status != 200:
191
 
            raise brz_errors.UnexpectedHttpStatus(url, resp.status)
 
188
            raise brz_errors.InvalidHttpResponse(
 
189
                url, 'Unable to handle http code %d' % resp.status)
192
190
 
193
191
        ct = resp.getheader("Content-Type")
194
192
        if ct and ct.startswith("application/x-git"):