mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-11-23 00:33:28 +01:00
Use git fetch for getting the latest SD commits
This commit is contained in:
parent
ecda0d5b05
commit
2174788514
@ -23,7 +23,7 @@ def fetch_repo():
|
||||
|
||||
if not is_developer_mode:
|
||||
helpers.run("git reset --hard", run_in_folder=app.stable_diffusion_repo_dir_path)
|
||||
helpers.run("git pull", run_in_folder=app.stable_diffusion_repo_dir_path)
|
||||
helpers.run("git fetch origin", run_in_folder=app.stable_diffusion_repo_dir_path)
|
||||
helpers.run(f'git -c advice.detachedHead=false checkout "{commit_id}"', run_in_folder=app.stable_diffusion_repo_dir_path)
|
||||
else:
|
||||
helpers.log("\nDownloading Stable Diffusion..\n")
|
||||
|
Loading…
Reference in New Issue
Block a user