Remove unnecessary string conversion of paths

This commit is contained in:
Daniël de Kok 2023-01-25 10:13:49 +01:00
parent e92f4de49e
commit 347727237c

View File

@ -415,7 +415,7 @@ def git_checkout(
err = f"'{subpath}' is a path outside of the cloned repository."
msg.fail(err, repo, exits=1)
if os.path.isdir(source_path):
shutil.copytree(str(source_path), str(dest))
shutil.copytree(source_path, dest)
else:
shutil.copyfile(source_path, dest)
except FileNotFoundError: