Fix handling of symlinks in write_archive().
This commit is contained in:
@@ -623,5 +623,7 @@ class Repository(_Repository):
|
|||||||
info.type = archive.SYMTYPE
|
info.type = archive.SYMTYPE
|
||||||
info.linkname = content
|
info.linkname = content
|
||||||
info.mode = 0o777 # symlinks get placeholder
|
info.mode = 0o777 # symlinks get placeholder
|
||||||
|
info.size = 0
|
||||||
archive.addfile(info, StringIO(content))
|
archive.addfile(info)
|
||||||
|
else:
|
||||||
|
archive.addfile(info, StringIO(content))
|
||||||
|
Reference in New Issue
Block a user