Added core.filemode=false so doesn't track changes in file permissions in more restrictive environments

This commit is contained in:
RedDeltas 2024-02-15 12:26:14 +00:00
parent b7f45e67dc
commit 18ec22bffe

View File

@ -188,7 +188,7 @@ def git_clone(url, dir, name, commithash=None):
return
try:
run(f'"{git}" clone "{url}" "{dir}"', f"Cloning {name} into {dir}...", f"Couldn't clone {name}", live=True)
run(f'"{git}" clone --config core.filemode=false "{url}" "{dir}"', f"Cloning {name} into {dir}...", f"Couldn't clone {name}", live=True)
except RuntimeError:
shutil.rmtree(dir, ignore_errors=True)
raise