Skip to content
Snippets Groups Projects
Commit 45d1c372 authored by Mike Frysinger's avatar Mike Frysinger
Browse files

project: fix bytes/str encoding when updating git submodules

Since tempfile.mkstemp() returns a file handle in binary mode,
make sure we turn our strings into bytes before writing.

Bug: https://crbug.com/gerrit/12043
Change-Id: I3e84d595e84b8bc12a1fbc7fd0bb3ea0ba2832b0
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/254393


Reviewed-by: default avatarMichael Mortensen <mmortensen@google.com>
Reviewed-by: default avatarMike Frysinger <vapier@google.com>
Tested-by: default avatarMike Frysinger <vapier@google.com>
(cherry picked from commit 163d42eb)
parent 19607b28
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment