forked from extern/easydiffusion
Typo in detachedHead suppress command
This commit is contained in:
parent
65c667cc37
commit
55bd8a34d7
@ -11,7 +11,7 @@ def run():
|
|||||||
helpers.log(f"Stable Diffusion UI's git repository was already installed. Updating from {branch_name}..")
|
helpers.log(f"Stable Diffusion UI's git repository was already installed. Updating from {branch_name}..")
|
||||||
|
|
||||||
helpers.run("git reset --hard", run_in_folder=app.project_repo_dir_path)
|
helpers.run("git reset --hard", run_in_folder=app.project_repo_dir_path)
|
||||||
helpers.run(f'git checkout -c advice.detachedHead=false "{branch_name}"', run_in_folder=app.project_repo_dir_path)
|
helpers.run(f'git -c advice.detachedHead=false checkout "{branch_name}"', run_in_folder=app.project_repo_dir_path)
|
||||||
helpers.run("git pull", run_in_folder=app.project_repo_dir_path)
|
helpers.run("git pull", run_in_folder=app.project_repo_dir_path)
|
||||||
else:
|
else:
|
||||||
helpers.log("\nDownloading Stable Diffusion UI..\n")
|
helpers.log("\nDownloading Stable Diffusion UI..\n")
|
||||||
@ -23,4 +23,4 @@ def run():
|
|||||||
helpers.show_install_error(error_msg="Could not download Stable Diffusion UI")
|
helpers.show_install_error(error_msg="Could not download Stable Diffusion UI")
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
helpers.run(f'git checkout -c advice.detachedHead=false "{branch_name}"', run_in_folder=app.project_repo_dir_path)
|
helpers.run(f'git -c advice.detachedHead=false checkout "{branch_name}"', run_in_folder=app.project_repo_dir_path)
|
||||||
|
@ -23,7 +23,7 @@ def fetch_repo():
|
|||||||
|
|
||||||
if not is_developer_mode:
|
if not is_developer_mode:
|
||||||
helpers.run("git reset --hard", run_in_folder=app.stable_diffusion_repo_dir_path)
|
helpers.run("git reset --hard", run_in_folder=app.stable_diffusion_repo_dir_path)
|
||||||
helpers.run(f'git checkout -c advice.detachedHead=false "{commit_id}"', 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)
|
||||||
helpers.run("git pull", run_in_folder=app.stable_diffusion_repo_dir_path)
|
helpers.run("git pull", run_in_folder=app.stable_diffusion_repo_dir_path)
|
||||||
else:
|
else:
|
||||||
helpers.log("\nDownloading Stable Diffusion..\n")
|
helpers.log("\nDownloading Stable Diffusion..\n")
|
||||||
@ -35,7 +35,7 @@ def fetch_repo():
|
|||||||
helpers.show_install_error(error_msg="Could not download Stable Diffusion")
|
helpers.show_install_error(error_msg="Could not download Stable Diffusion")
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
helpers.run(f'git checkout -c advice.detachedHead=false "{commit_id}"', 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)
|
||||||
|
|
||||||
def apply_patches():
|
def apply_patches():
|
||||||
if is_developer_mode:
|
if is_developer_mode:
|
||||||
|
Loading…
Reference in New Issue
Block a user