Merge pull request #6364 from wenottingham/dont-make-a-tree-that-never-ends-and-just-goes-on-and-on

Preserve symlinks when copying a tree.

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
softwarefactory-project-zuul[bot] 2020-03-23 18:57:05 +00:00 committed by GitHub
commit 4b497b8cdc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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