Repository: stable-diffusion-webui
Issue: [Bug]: fetching updates for stable diffusion Prompt error
Labels: bug-report

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

venv "D:\SDAI\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Commit hash: 22bcc7be428c94e9408f589966c2040187245d81
Fetching updates for Stable Diffusion...
Checking out commit for Stable Diffusion with hash: cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf...
Traceback (most recent call last):
  File "D:\SDAI\stable-diffusion-webui\launch.py", line 355, in <module>
    prepare_environment()
  File "D:\SDAI\stable-diffusion-webui\launch.py", line 288, in prepare_environment
    git_clone(stable_diffusion_repo, repo_dir('stable-diffusion-stability-ai'), "Stable Diffusion", stable_diffusion_commit_hash)
  File "D:\SDAI\stable-diffusion-webui\launch.py", line 148, in git_clone
    run(f'"{git}" -C "{dir}" checkout {commithash}', f"Checking out commit for {name} with hash: {commithash}...", f"Couldn't checkout commit {commithash} for {name}")
  File "D:\SDAI\stable-diffusion-webui\launch.py", line 97, in run
    raise RuntimeError(message)
RuntimeError: Couldn't checkout commit cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf for Stable Diffusion.
Command: "git" -C "D:\SDAI\stable-diffusion-webui\repositories\stable-diffusion-stability-ai" checkout cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf
Error code: 128
stdout: <empty>
stderr: fatal: reference is not a tree: cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf

### Steps to reproduce the problem

venv "D:\SDAI\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Commit hash: 22bcc7be428c94e9408f589966c2040187245d81
Fetching updates for Stable Diffusion...
Checking out commit for Stable Diffusion with hash: cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf...
Traceback (most recent call last):
  File "D:\SDAI\stable-diffusion-webui\launch.py", line 355, in <module>
    prepare_environment()
  File "D:\SDAI\stable-diffusion-webui\launch.py", line 288, in prepare_environment
    git_clone(stable_diffusion_repo, repo_dir('stable-diffusion-stability-ai'), "Stable Diffusion", stable_diffusion_commit_hash)
  File "D:\SDAI\stable-diffusion-webui\launch.py", line 148, in git_clone
    run(f'"{git}" -C "{dir}" checkout {commithash}', f"Checking out commit for {name} with hash: {commithash}...", f"Couldn't checkout commit {commithash} for {name}")
  File "D:\SDAI\stable-diffusion-webui\launch.py", line 97, in run
    raise RuntimeError(message)
RuntimeError: Couldn't checkout commit cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf for Stable Diffusion.
Command: "git" -C "D:\SDAI\stable-diffusion-webui\repositories\stable-diffusion-stability-ai" checkout cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf
Error code: 128
stdout: <empty>
stderr: fatal: reference is not a tree: cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf

### What should have happened?

venv "D:\SDAI\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Commit hash: 22bcc7be428c94e9408f589966c2040187245d81
Fetching updates for Stable Diffusion...
Checking out commit for Stable Diffusion with hash: cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf...
Traceback (most recent call last):
  File "D:\SDAI\stable-diffusion-webui\launch.py", line 355, in <module>
    prepare_environment()
  File "D:\SDAI\stable-diffusion-webui\launch.py", line 288, in prepare_environment
    git_clone(stable_diffusion_repo, repo_dir('stable-diffusion-stability-ai'), "Stable Diffusion", stable_diffusion_commit_hash)
  File "D:\SDAI\stable-diffusion-webui\launch.py", line 148, in git_clone
    run(f'"{git}" -C "{dir}" checkout {commithash}', f"Checking out commit for {name} with hash: {commithash}...", f"Couldn't checkout commit {commithash} for {name}")
  File "D:\SDAI\stable-diffusion-webui\launch.py", line 97, in run
    raise RuntimeError(message)
RuntimeError: Couldn't checkout commit cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf for Stable Diffusion.
Command: "git" -C "D:\SDAI\stable-diffusion-webui\repositories\stable-diffusion-stability-ai" checkout cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf
Error code: 128
stdout: <empty>
stderr: fatal: reference is not a tree: cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf

### Commit where the problem happens

Fetching updates for Stable Diffusion

### What platforms do you use to access the UI ?

_No response_

### What browsers do you use to access the UI ?

_No response_

### Command Line Arguments

```Shell
venv "D:\SDAI\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Commit hash: 22bcc7be428c94e9408f589966c2040187245d81
Fetching updates for Stable Diffusion...
Checking out commit for Stable Diffusion with hash: cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf...
Traceback (most recent call last):
  File "D:\SDAI\stable-diffusion-webui\launch.py", line 355, in <module>
    prepare_environment()
  File "D:\SDAI\stable-diffusion-webui\launch.py", line 288, in prepare_environment
    git_clone(stable_diffusion_repo, repo_dir('stable-diffusion-stability-ai'), "Stable Diffusion", stable_diffusion_commit_hash)
  File "D:\SDAI\stable-diffusion-webui\launch.py", line 148, in git_clone
    run(f'"{git}" -C "{dir}" checkout {commithash}', f"Checking out commit for {name} with hash: {commithash}...", f"Couldn't checkout commit {commithash} for {name}")
  File "D:\SDAI\stable-diffusion-webui\launch.py", line 97, in run
    raise RuntimeError(message)
RuntimeError: Couldn't checkout commit cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf for Stable Diffusion.
Command: "git" -C "D:\SDAI\stable-diffusion-webui\repositories\stable-diffusion-stability-ai" checkout cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf
Error code: 128
stdout: <empty>
stderr: fatal: reference is not a tree: cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf
```


### List of extensions

venv "D:\SDAI\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Commit hash: 22bcc7be428c94e9408f589966c2040187245d81
Fetching updates for Stable Diffusion...
Checking out commit for Stable Diffusion with hash: cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf...
Traceback (most recent call last):
  File "D:\SDAI\stable-diffusion-webui\launch.py", line 355, in <module>
    prepare_environment()
  File "D:\SDAI\stable-diffusion-webui\launch.py", line 288, in prepare_environment
    git_clone(stable_diffusion_repo, repo_dir('stable-diffusion-stability-ai'), "Stable Diffusion", stable_diffusion_commit_hash)
  File "D:\SDAI\stable-diffusion-webui\launch.py", line 148, in git_clone
    run(f'"{git}" -C "{dir}" checkout {commithash}', f"Checking out commit for {name} with hash: {commithash}...", f"Couldn't checkout commit {commithash} for {name}")
  File "D:\SDAI\stable-diffusion-webui\launch.py", line 97, in run
    raise RuntimeError(message)
RuntimeError: Couldn't checkout commit cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf for Stable Diffusion.
Command: "git" -C "D:\SDAI\stable-diffusion-webui\repositories\stable-diffusion-stability-ai" checkout cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf
Error code: 128
stdout: <empty>
stderr: fatal: reference is not a tree: cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf

### Console logs

```Shell
venv "D:\SDAI\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Commit hash: 22bcc7be428c94e9408f589966c2040187245d81
Fetching updates for Stable Diffusion...
Checking out commit for Stable Diffusion with hash: cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf...
Traceback (most recent call last):
  File "D:\SDAI\stable-diffusion-webui\launch.py", line 355, in <module>
    prepare_environment()
  File "D:\SDAI\stable-diffusion-webui\launch.py", line 288, in prepare_environment
    git_clone(stable_diffusion_repo, repo_dir('stable-diffusion-stability-ai'), "Stable Diffusion", stable_diffusion_commit_hash)
  File "D:\SDAI\stable-diffusion-webui\launch.py", line 148, in git_clone
    run(f'"{git}" -C "{dir}" checkout {commithash}', f"Checking out commit for {name} with hash: {commithash}...", f"Couldn't checkout commit {commithash} for {name}")
  File "D:\SDAI\stable-diffusion-webui\launch.py", line 97, in run
    raise RuntimeError(message)
RuntimeError: Couldn't checkout commit cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf for Stable Diffusion.
Command: "git" -C "D:\SDAI\stable-diffusion-webui\repositories\stable-diffusion-stability-ai" checkout cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf
Error code: 128
stdout: <empty>
stderr: fatal: reference is not a tree: cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf
```


### Additional information

_No response_