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

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-01-12 14:46:56 UTC
  • mfrom: (7404.5.6 follow-tree-references-branch)
  • Revision ID: breezy.the.bot@gmail.com-20200112144656-vx5jxg1votqi5217
Support checking out nested trees in "bzr branch", including for git repositories.

Merged from https://code.launchpad.net/~jelmer/brz/follow-tree-references-branch/+merge/374397

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
from __future__ import absolute_import
20
20
 
21
21
import gzip
 
22
from io import BytesIO
22
23
import re
23
24
 
24
25
from .. import (
718
719
        # before issuing the next to still allow for connection reuse from the
719
720
        # pool.
720
721
        if response.getheader("Content-Encoding") == "gzip":
721
 
            read = gzip.GzipFile(fileobj=response).read
 
722
            read = gzip.GzipFile(fileobj=BytesIO(response.read())).read
722
723
        else:
723
724
            read = response.read
724
725