Preserve symlinks when copying a tree.

This avoids creating a recursive symlink tree.
This commit is contained in:
Bill Nottingham 2020-03-20 13:38:54 -04:00
parent e17ff3e03a
commit ac68e8c4fe

View File

@ -2291,7 +2291,7 @@ class RunProjectUpdate(BaseTask):
# force option is necessary because remote refs are not counted, although no information is lost
git_repo.delete_head(tmp_branch_name, force=True)
else:
copy_tree(project_path, destination_folder)
copy_tree(project_path, destination_folder, preserve_symlinks=1)
def post_run_hook(self, instance, status):
# To avoid hangs, very important to release lock even if errors happen here