We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bee56cd commit df52667Copy full SHA for df52667
1 file changed
pre_commit/make_archives.py
@@ -49,7 +49,9 @@ def make_archive(name, repo, ref, destdir):
49
# We don't want the '.git' directory
50
shutil.rmtree(os.path.join(tempdir, '.git'))
51
52
- with tarfile_open(output_path, 'w|gz') as tf:
+ # XXX: py2.6 derps if filename is unicode while writing
53
+ # XXX: str() is used to preserve behavior in py3
54
+ with tarfile_open(str(output_path), 'w|gz') as tf:
55
tf.add(tempdir, name)
56
57
return output_path
0 commit comments