Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core: utils: _copy_using: Put the dest dir name into the ignore pattern
Our default copy destination for the working copies of input repositories is '.' which means that even the destination directory (a temporary one) is copied recursively - luckily, the copy backend seems to be smart enough not to get stuck in an infinite recursion. Nevertheless, fix the issue by putting the destination dir name into the ignore pattern of 'shutil.copytree'. This is fine because the destination name is always going to be unique in our case and hence there is close to 0% chance of a name collision preventing copying of some relevant data (in case we don't copy to '.' by default anymore). Fixes: 2937416 Signed-off-by: Erik Skultety <[email protected]>
- Loading branch information