[Bug]: Couldn't checkout commit 45c443b316737a4ab6e40413d7794a7f5657c19f for Stable Diffusion XL.

Author: yardcheekCreated Jul 29, 2026Updated Jul 29, 2026
Labelsbug-report

Checklist

  • The issue exists after disabling all extensions
  • The issue exists on a clean installation of webui
  • The issue is caused by an extension, but I believe it is caused by a bug in the webui
  • The issue exists in the current version of the webui
  • The issue has not been reported before recently
  • The issue has been reported before but has not been fixed yet

What happened?

when launching webui-user, the following error occurs

venv "D:\stable-diffusion-webui\venv\Scripts\Python.exe" Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)] Version: v1.10.1 Commit hash: 82a973c04367123ae98bd9abdf80d9eda9b910e2 Fetching updates for Stable Diffusion XL... Checking out commit for Stable Diffusion XL with hash: 45c443b316737a4ab6e40413d7794a7f5657c19f... fatal: unable to read tree (45c443b316737a4ab6e40413d7794a7f5657c19f) Couldn't checkout commit 45c443b316737a4ab6e40413d7794a7f5657c19f for Stable Diffusion XL, attempting autofix... Fetching all contents for Stable Diffusion XL remote: Enumerating objects: 580, done. remote: Counting objects: 100% (144/144), done. remote: Compressing objects: 100% (30/30), done. remote: Total 580 (delta 118), reused 114 (delta 114), pack-reused 436 (from 1) Receiving objects: 100% (580/580), 73.43 MiB | 9.45 MiB/s, done. Resolving deltas: 100% (289/289), done. Pruning Stable Diffusion XL Enumerating objects: 580, done. Counting objects: 100% (580/580), done. Delta compression using up to 12 threads Compressing objects: 100% (559/559), done. Writing objects: 100% (580/580), done. Total 580 (delta 298), reused 260 (delta 0), pack-reused 0 (from 0) Checking out commit for Stable Diffusion XL with hash: 45c443b316737a4ab6e40413d7794a7f5657c19f... fatal: unable to read tree (45c443b316737a4ab6e40413d7794a7f5657c19f) Traceback (most recent call last): File "D:\stable-diffusion-webui\launch.py", line 48, in main() File "D:\stable-diffusion-webui\launch.py", line 39, in main prepare_environment() File "D:\stable-diffusion-webui\modules\launch_utils.py", line 413, in prepare_environment git_clone(stable_diffusion_xl_repo, repo_dir('generative-models'), "Stable Diffusion XL", stable_diffusion_xl_commit_hash) File "D:\stable-diffusion-webui\modules\launch_utils.py", line 187, in git_clone run_git(dir, name, f'checkout {commithash}', f"Checking out commit for {name} with hash: {commithash}...", f"Couldn't checkout commit {commithash} for {name}", live=True) File "D:\stable-diffusion-webui\modules\launch_utils.py", line 168, in run_git return run(f'"{git}" -C "{dir}" {command}', desc=desc, errdesc=errdesc, custom_env=custom_env, live=live) File "D:\stable-diffusion-webui\modules\launch_utils.py", line 116, in run raise RuntimeError("\n".join(error_bits)) RuntimeError: Couldn't checkout commit 45c443b316737a4ab6e40413d7794a7f5657c19f for Stable Diffusion XL. Command: "git" -C "D:\stable-diffusion-webui\repositories\generative-models" checkout 45c443b316737a4ab6e40413d7794a7f5657c19f Error code: 128

Steps to reproduce the problem

  1. Open webui-user
  2. Error occurs

What should have happened?

webui should start

What browsers do you use to access the UI ?

No response

Sysinfo

I can't generate sysinfo file

Console logs

venv "D:\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.10.1
Commit hash: 82a973c04367123ae98bd9abdf80d9eda9b910e2
Fetching updates for Stable Diffusion XL...
Checking out commit for Stable Diffusion XL with hash: 45c443b316737a4ab6e40413d7794a7f5657c19f...
fatal: unable to read tree (45c443b316737a4ab6e40413d7794a7f5657c19f)
Couldn't checkout commit 45c443b316737a4ab6e40413d7794a7f5657c19f for Stable Diffusion XL, attempting autofix...
Fetching all contents for Stable Diffusion XL
remote: Enumerating objects: 580, done.
remote: Counting objects: 100% (144/144), done.
remote: Compressing objects: 100% (30/30), done.
remote: Total 580 (delta 118), reused 114 (delta 114), pack-reused 436 (from 1)
Receiving objects: 100% (580/580), 73.43 MiB | 9.45 MiB/s, done.
Resolving deltas: 100% (289/289), done.
Pruning Stable Diffusion XL
Enumerating objects: 580, done.
Counting objects: 100% (580/580), done.
Delta compression using up to 12 threads
Compressing objects: 100% (559/559), done.
Writing objects: 100% (580/580), done.
Total 580 (delta 298), reused 260 (delta 0), pack-reused 0 (from 0)
Checking out commit for Stable Diffusion XL with hash: 45c443b316737a4ab6e40413d7794a7f5657c19f...
fatal: unable to read tree (45c443b316737a4ab6e40413d7794a7f5657c19f)
Traceback (most recent call last):
  File "D:\stable-diffusion-webui\launch.py", line 48, in <module>
    main()
  File "D:\stable-diffusion-webui\launch.py", line 39, in main
    prepare_environment()
  File "D:\stable-diffusion-webui\modules\launch_utils.py", line 413, in prepare_environment
    git_clone(stable_diffusion_xl_repo, repo_dir('generative-models'), "Stable Diffusion XL", stable_diffusion_xl_commit_hash)
  File "D:\stable-diffusion-webui\modules\launch_utils.py", line 187, in git_clone
    run_git(dir, name, f'checkout {commithash}', f"Checking out commit for {name} with hash: {commithash}...", f"Couldn't checkout commit {commithash} for {name}", live=True)
  File "D:\stable-diffusion-webui\modules\launch_utils.py", line 168, in run_git
    return run(f'"{git}" -C "{dir}" {command}', desc=desc, errdesc=errdesc, custom_env=custom_env, live=live)
  File "D:\stable-diffusion-webui\modules\launch_utils.py", line 116, in run
    raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't checkout commit 45c443b316737a4ab6e40413d7794a7f5657c19f for Stable Diffusion XL.
Command: "git" -C "D:\stable-diffusion-webui\repositories\generative-models" checkout 45c443b316737a4ab6e40413d7794a7f5657c19f
Error code: 128

Additional information

No response

Source: AUTOMATIC1111/stable-diffusion-webui