/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-12-22 12:35:21 UTC
  • mfrom: (7413.4.4 git-probing)
  • Revision ID: breezy.the.bot@gmail.com-20191222123521-begjwps5gnk7u9pw
Various improvements for Git repository probing.

Merged from https://code.launchpad.net/~jelmer/brz/git-probing/+merge/375651

Show diffs side-by-side

added added

removed removed

Lines of Context:
183
183
        if ct and ct.startswith("application/x-git"):
184
184
            from .remote import RemoteGitControlDirFormat
185
185
            return RemoteGitControlDirFormat()
186
 
        else:
 
186
        elif not ct:
187
187
            from .dir import (
188
188
                BareLocalGitControlDirFormat,
189
189
                )
190
190
            ret = BareLocalGitControlDirFormat()
191
191
            ret._refs_text = resp.read()
192
192
            return ret
 
193
        raise brz_errors.NotBranchError(transport.base)
193
194
 
194
195
    def probe_transport(self, transport):
195
196
        try: