Skip to content

Commit

Permalink
repository: SYMTYPE is constant in module tarfile, not in any class
Browse files Browse the repository at this point in the history
Reference: #618
Signed-off-by: Igor Gnatenko <[email protected]>
  • Loading branch information
Igor Gnatenko committed Apr 15, 2016
1 parent 51915dd commit 270dad8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygit2/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ def write_archive(self, treeish, archive, timestamp=None, prefix=''):
info.mtime = timestamp
info.uname = info.gname = 'root' # just because git does this
if entry.mode == GIT_FILEMODE_LINK:
info.type = archive.SYMTYPE
info.type = tarfile.SYMTYPE
info.linkname = content
info.mode = 0o777 # symlinks get placeholder
info.size = 0
Expand Down

0 comments on commit 270dad8

Please sign in to comment.