/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: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-06-11 12:46:45 UTC
  • mfrom: (7511.1.1 actions-no-fork)
  • Revision ID: breezy.the.bot@gmail.com-20200611124645-4lx66gps99i0hmzh
Avoid using fork when running the testsuite in github actions.

Merged from https://code.launchpad.net/~jelmer/brz/actions-no-fork/+merge/385565

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"):