未验证 提交 a56125b0 编写于 作者: A AUTOMATIC1111 提交者: GitHub

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…
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册