Merge pull request #14930 from RedDeltas/feat/launch_utils/file_mode_for_clone

Added core.filemode=false so doesn't track changes in file permission…
This commit is contained in:
AUTOMATIC1111 2024-02-17 08:48:37 +03:00 committed by GitHub
commit a56125b0a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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