/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: 2019-11-02 23:19:18 UTC
  • mto: This revision was merged to the branch mainline in revision 7413.
  • Revision ID: jelmer@jelmer.uk-20191102231918-8umqkgb2j0lc262j
Fix support for reading from a dumb git server.

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: