From 2174788514e576711b230690d47fa8e8a824a1f2 Mon Sep 17 00:00:00 2001 From: cmdr2 Date: Tue, 4 Oct 2022 14:36:20 +0530 Subject: [PATCH] Use git fetch for getting the latest SD commits --- installer/installer/tasks/fetch_stable_diffusion_repo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer/installer/tasks/fetch_stable_diffusion_repo.py b/installer/installer/tasks/fetch_stable_diffusion_repo.py index aa9e47af..5125798e 100644 --- a/installer/installer/tasks/fetch_stable_diffusion_repo.py +++ b/installer/installer/tasks/fetch_stable_diffusion_repo.py @@ -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")