diff options
author | Ben Hutchings <ben.hutchings@codethink.co.uk> | 2020-05-04 19:56:24 +0100 |
---|---|---|
committer | Ben Hutchings <ben.hutchings@codethink.co.uk> | 2020-05-29 20:35:30 +0100 |
commit | eebf790e2909ff39974e0db42fdfa9a98dbecbcf (patch) | |
tree | 5a999f6ea5ae4652bcad33ace2a95f50770632b3 /tests/git-backup-on-error-multiple-backups.stderr | |
parent | 4792912cecf52d63fdcc89e6f852e3a32f37c49c (diff) | |
download | lorry-eebf790e2909ff39974e0db42fdfa9a98dbecbcf.tar.gz |
lorry.{g,}zip-importer: Read and write in binary mode
gzip and zip files are not in text format, and the file contents
that we send to git may not be either. So:
* Open gzip files in binary mode.
* Open the pipe to 'git fast-import' in binary mode. This requires
using subprocess.Popen instead of os.popen.
* Change printlines functions to encode text in UTF-8.
* Use printlines functions in the remaining places where we need
to write text.
Diffstat (limited to 'tests/git-backup-on-error-multiple-backups.stderr')
0 files changed, 0 insertions, 0 deletions