/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/transportgit.py

  • Committer: Jelmer Vernooij
  • Date: 2019-12-26 13:20:45 UTC
  • mfrom: (7290.42.3 work)
  • mto: This revision was merged to the branch mainline in revision 7429.
  • Revision ID: jelmer@jelmer.uk-20191226132045-05mh441mzgqxljio
merge lp:brz/3.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
212
212
        except NoSuchFile:
213
213
            return None
214
214
        with f:
215
 
            header = f.read(len(SYMREF))
 
215
            try:
 
216
                header = f.read(len(SYMREF))
 
217
            except ReadError:
 
218
                # probably a directory
 
219
                return None
216
220
            if header == SYMREF:
217
221
                # Read only the first line
218
222
                return header + next(iter(f)).rstrip(b"\r\n")