mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-04-24 22:09:00 +08:00
Added core.filemode=false so doesn't track changes in file permissions in more restrictive environments
This commit is contained in:
parent
b7f45e67dc
commit
18ec22bffe
@ -188,7 +188,7 @@ def git_clone(url, dir, name, commithash=None):
|
|||||||
return
|
return
|
||||||
|
|
||||||
try:
|
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:
|
except RuntimeError:
|
||||||
shutil.rmtree(dir, ignore_errors=True)
|
shutil.rmtree(dir, ignore_errors=True)
|
||||||
raise
|
raise
|
||||||
|
Loading…
x
Reference in New Issue
Block a user