Skip to content

Commit

Permalink
Merge pull request #14930 from RedDeltas/feat/launch_utils/file_mode_…
Browse files Browse the repository at this point in the history
…for_clone

Added core.filemode=false so doesn't track changes in file permission…
  • Loading branch information
AUTOMATIC1111 committed Feb 17, 2024
2 parents b7f45e6 + 18ec22b commit a56125b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/launch_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a56125b

Please sign in to comment.