Skip to content
Snippets Groups Projects
Commit ceb26750 authored by vlorentz's avatar vlorentz
Browse files

Fix mypy error

This is not a runtime issue, because when the supplied mode is DentryPerms.symlink,
the target is only used passed to os.symlink, which does allow str too.
parent c07d934a
No related branches found
No related tags found
1 merge request!157Fix mypy error
......@@ -130,7 +130,7 @@ class DirectoryBuilder:
identifier."""
for file_data in revs_data:
path = os.path.join(self.root, file_data["path"])
target = hashutil.hash_to_hex(file_data["target"])
target = hashutil.hash_to_bytehex(file_data["target"])
self._create_file(path, target, mode=DentryPerms.symlink)
def _create_file(
......
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