/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: 2019-11-03 18:21:46 UTC
  • mfrom: (7411.1.3 git-dumb-server)
  • Revision ID: breezy.the.bot@gmail.com-20191103182146-j91q9r2cyjy9hilp
Fix support for reading from a dumb git server.

Merged from https://code.launchpad.net/~jelmer/brz/git-dumb-server/+merge/375063

Show diffs side-by-side

added added

removed removed

Lines of Context:
180
180
                url, 'Unable to handle http code %d' % resp.status)
181
181
 
182
182
        ct = resp.getheader("Content-Type")
183
 
        if ct is None:
184
 
            raise brz_errors.NotBranchError(transport.base)
185
 
        if ct.startswith("application/x-git"):
 
183
        if ct and ct.startswith("application/x-git"):
186
184
            from .remote import RemoteGitControlDirFormat
187
185
            return RemoteGitControlDirFormat()
188
186
        else: