Repository: stable-diffusion-webui
Issue: RuntimeError: Couldn't determine assets's hash: ...
Labels: bug-report

### Checklist

- [ ] The issue exists after disabling all extensions
- [X] 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
- [X] The issue exists in the current version of the webui
- [X] The issue has not been reported before recently
- [ ] The issue has been reported before but has not been fixed yet

### What happened?

I've been trying for many hours these couple days to just run the install in multiple ways. I've followed the steps carefully but I somehow end up with this weird hash error that I don't understand.
-------

venv "E:\stable-diffusion\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.9.4
Commit hash: feee37d75f1b168768014e4634dcb156ee649c05
Couldn't determine assets's hash: 6f7db241d2f8ba7457bac5ca9753331f0c266917, attempting autofix...
Fetching all contents for assets
remote: Enumerating objects: 20, done.
remote: Counting objects: 100% (20/20), done.
remote: Compressing objects: 100% (18/18), done.
remote: Total 20 (delta 0), reused 20 (delta 0), pack-reused 0
Unpacking objects: 100% (20/20), 132.68 KiB | 3.32 MiB/s, done.
Pruning assets
Enumerating objects: 20, done.
Counting objects: 100% (20/20), done.
Delta compression using up to 12 threads
Compressing objects: 100% (18/18), done.
Writing objects: 100% (20/20), done.
Total 20 (delta 0), reused 20 (delta 0), pack-reused 0 (from 0)
Traceback (most recent call last):
  File "E:\stable-diffusion\stable-diffusion-webui\launch.py", line 48, in <module>
    main()
  File "E:\stable-diffusion\stable-diffusion-webui\launch.py", line 39, in main
    prepare_environment()
  File "E:\stable-diffusion\stable-diffusion-webui\modules\launch_utils.py", line 410, in prepare_environment
    git_clone(assets_repo, repo_dir('stable-diffusion-webui-assets'), "assets", assets_commit_hash)
  File "E:\stable-diffusion\stable-diffusion-webui\modules\launch_utils.py", line 177, in git_clone
    current_hash = run_git(dir, name, 'rev-parse HEAD', None, f"Couldn't determine {name}'s hash: {commithash}", live=False).strip()
  File "E:\stable-diffusion\stable-diffusion-webui\modules\launch_utils.py", line 167, in run_git
    return run(f'"{git}" -C "{dir}" {command}', desc=desc, errdesc=errdesc, custom_env=custom_env, live=live)
  File "E:\stable-diffusion\stable-diffusion-webui\modules\launch_utils.py", line 115, in run
    raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't determine assets's hash: 6f7db241d2f8ba7457bac5ca9753331f0c266917.
Command: "git" -C "E:\stable-diffusion\stable-diffusion-webui\repositories\stable-diffusion-webui-assets" rev-parse HEAD
Error code: 1
stdout: 6f7db241d2f8ba7457bac5ca9753331f0c266917

### Steps to reproduce the problem

1. Follow steps to install A1111 by cloning
2. Run webui-user.bat
3. Run webui-user.bat again

### What should have happened?

It should end with an url that's similar to an IP that I can paste into my browser to access A1111's SD webui

### What browsers do you use to access the UI ?

_No response_

### Sysinfo

-

### Console logs

```Shell
venv "E:\stable-diffusion\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.9.4
Commit hash: feee37d75f1b168768014e4634dcb156ee649c05
Couldn't determine assets's hash: 6f7db241d2f8ba7457bac5ca9753331f0c266917, attempting autofix...
Fetching all contents for assets
remote: Enumerating objects: 20, done.
remote: Counting objects: 100% (20/20), done.
remote: Compressing objects: 100% (18/18), done.
remote: Total 20 (delta 0), reused 20 (delta 0), pack-reused 0
Unpacking objects: 100% (20/20), 132.68 KiB | 3.32 MiB/s, done.
Pruning assets
Enumerating objects: 20, done.
Counting objects: 100% (20/20), done.
Delta compression using up to 12 threads
Compressing objects: 100% (18/18), done.
Writing objects: 100% (20/20), done.
Total 20 (delta 0), reused 20 (delta 0), pack-reused 0 (from 0)
Traceback (most recent call last):
  File "E:\stable-diffusion\stable-diffusion-webui\launch.py", line 48, in <module>
    main()
  File "E:\stable-diffusion\stable-diffusion-webui\launch.py", line 39, in main
    prepare_environment()
  File "E:\stable-diffusion\stable-diffusion-webui\modules\launch_utils.py", line 410, in prepare_environment
    git_clone(assets_repo, repo_dir('stable-diffusion-webui-assets'), "assets", assets_commit_hash)
  File "E:\stable-diffusion\stable-diffusion-webui\modules\launch_utils.py", line 177, in git_clone
    current_hash = run_git(dir, name, 'rev-parse HEAD', None, f"Couldn't determine {name}'s hash: {commithash}", live=False).strip()
  File "E:\stable-diffusion\stable-diffusion-webui\modules\launch_utils.py", line 167, in run_git
    return run(f'"{git}" -C "{dir}" {command}', desc=desc, errdesc=errdesc, custom_env=custom_env, live=live)
  File "E:\stable-diffusion\stable-diffusion-webui\modules\launch_utils.py", line 115, in run
    raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't determine assets's hash: 6f7db241d2f8ba7457bac5ca9753331f0c266917.
Command: "git" -C "E:\stable-diffusion\stable-diffusion-webui\repositories\stable-diffusion-webui-assets" rev-parse HEAD
Error code: 1
stdout: 6f7db241d2f8ba7457bac5ca9753331f0c266917
```


### Additional information

_No response_