Repository: stable-diffusion-webui
Issue: [Bug]: 
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?

git config --global --add safe.directory 'D:/stable diffusion/stable-diffusion-webui'
fatal: detected dubious ownership in repository at 'D:/stable diffusion/stable-diffusion-webui'
'D:/stable diffusion/stable-diffusion-webui' is on a file system that does not record ownership
To add an exception for this directory, call:

### Steps to reproduce the problem


D:\stable diffusion\stable-diffusion-webui>git pull
fatal: detected dubious ownership in repository at 'D:/stable diffusion/stable-diffusion-webui'
'D:/stable diffusion/stable-diffusion-webui' is on a file system that does not record ownership
To add an exception for this directory, call:

        git config --global --add safe.directory 'D:/stable diffusion/stable-diffusion-webui'
venv "D:\stable diffusion\stable-diffusion-webui\venv\Scripts\Python.exe"
fatal: detected dubious ownership in repository at 'D:/stable diffusion/stable-diffusion-webui'
'D:/stable diffusion/stable-diffusion-webui' is on a file system that does not record ownership
To add an exception for this directory, call:

        git config --global --add safe.directory 'D:/stable diffusion/stable-diffusion-webui'
fatal: detected dubious ownership in repository at 'D:/stable diffusion/stable-diffusion-webui'
'D:/stable diffusion/stable-diffusion-webui' is on a file system that does not record ownership
To add an exception for this directory, call:

        git config --global --add safe.directory 'D:/stable diffusion/stable-diffusion-webui'
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: 1.6.0
Commit hash: <none>
Cloning Stable Diffusion into D:\stable diffusion\stable-diffusion-webui\repositories\stable-diffusion-stability-ai...
Cloning into 'D:\stable diffusion\stable-diffusion-webui\repositories\stable-diffusion-stability-ai'...
remote: Enumerating objects: 577, done.
remote: Counting objects: 100% (307/307), done.
remote: Compressing objects: 100% (91/91), done.
remote: Total 577 (delta 246), reused 217 (delta 216), pack-reused 270Receiving objects:  93% (537/577), 73.24 MiB | 3.59 MiB/s
Receiving objects: 100% (577/577), 73.43 MiB | 2.98 MiB/s, done.
Resolving deltas: 100% (278/278), done.
Updating files: 100% (135/135), done.
Traceback (most recent call last):
  File "D:\stable diffusion\stable-diffusion-webui\launch.py", line 48, in <module>
    main()
  File "D:\stable diffusion\stable-diffusion-webui\launch.py", line 39, in main
    prepare_environment()
  File "D:\stable diffusion\stable-diffusion-webui\modules\launch_utils.py", line 380, in prepare_environment
    git_clone(stable_diffusion_repo, repo_dir('stable-diffusion-stability-ai'), "Stable Diffusion", stable_diffusion_commit_hash)
  File "D:\stable diffusion\stable-diffusion-webui\modules\launch_utils.py", line 192, in git_clone
    run(f'"{git}" -C "{dir}" checkout {commithash}', None, "Couldn't checkout {name}'s hash: {commithash}")
  File "D:\stable diffusion\stable-diffusion-webui\modules\launch_utils.py", line 115, in run
    raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't checkout {name}'s hash: {commithash}.
Command: "git" -C "D:\stable diffusion\stable-diffusion-webui\repositories\stable-diffusion-stability-ai" checkout cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf
Error code: 128
stderr: fatal: detected dubious ownership in repository at 'D:/stable diffusion/stable-diffusion-webui/repositories/stable-diffusion-stability-ai'
'D:/stable diffusion/stable-diffusion-webui/repositories/stable-diffusion-stability-ai' is on a file system that does not record ownership
To add an exception for this directory, call:

        git config --global --add safe.directory 'D:/stable diffusion/stable-diffusion-webui/repositories/stable-diffusion-stability-ai'

Press any key to continue . . .

### What should have happened?

error is coming several times when I reinstall stable diffusion 

### Sysinfo

git config --global --add safe.directory 'D:/stable diffusion/stable-diffusion-webui'
fatal: detected dubious ownership in repository at 'D:/stable diffusion/stable-diffusion-webui'
'D:/stable diffusion/stable-diffusion-webui' is on a file system that does not record ownership
To add an exception for this directory, call:

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

Google Chrome

### Console logs

```Shell
D:\stable diffusion\stable-diffusion-webui>git pull
fatal: detected dubious ownership in repository at 'D:/stable diffusion/stable-diffusion-webui'
'D:/stable diffusion/stable-diffusion-webui' is on a file system that does not record ownership
To add an exception for this directory, call:

        git config --global --add safe.directory 'D:/stable diffusion/stable-diffusion-webui'
venv "D:\stable diffusion\stable-diffusion-webui\venv\Scripts\Python.exe"
fatal: detected dubious ownership in repository at 'D:/stable diffusion/stable-diffusion-webui'
'D:/stable diffusion/stable-diffusion-webui' is on a file system that does not record ownership
To add an exception for this directory, call:

        git config --global --add safe.directory 'D:/stable diffusion/stable-diffusion-webui'
fatal: detected dubious ownership in repository at 'D:/stable diffusion/stable-diffusion-webui'
'D:/stable diffusion/stable-diffusion-webui' is on a file system that does not record ownership
To add an exception for this directory, call:

        git config --global --add safe.directory 'D:/stable diffusion/stable-diffusion-webui'
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: 1.6.0
Commit hash: <none>
Cloning Stable Diffusion into D:\stable diffusion\stable-diffusion-webui\repositories\stable-diffusion-stability-ai...
Cloning into 'D:\stable diffusion\stable-diffusion-webui\repositories\stable-diffusion-stability-ai'...
remote: Enumerating objects: 577, done.
remote: Counting objects: 100% (307/307), done.
remote: Compressing objects: 100% (91/91), done.
remote: Total 577 (delta 246), reused 217 (delta 216), pack-reused 270Receiving objects:  93% (537/577), 73.24 MiB | 3.59 MiB/s
Receiving objects: 100% (577/577), 73.43 MiB | 2.98 MiB/s, done.
Resolving deltas: 100% (278/278), done.
Updating files: 100% (135/135), done.
Traceback (most recent call last):
  File "D:\stable diffusion\stable-diffusion-webui\launch.py", line 48, in <module>
    main()
  File "D:\stable diffusion\stable-diffusion-webui\launch.py", line 39, in main
    prepare_environment()
  File "D:\stable diffusion\stable-diffusion-webui\modules\launch_utils.py", line 380, in prepare_environment
    git_clone(stable_diffusion_repo, repo_dir('stable-diffusion-stability-ai'), "Stable Diffusion", stable_diffusion_commit_hash)
  File "D:\stable diffusion\stable-diffusion-webui\modules\launch_utils.py", line 192, in git_clone
    run(f'"{git}" -C "{dir}" checkout {commithash}', None, "Couldn't checkout {name}'s hash: {commithash}")
  File "D:\stable diffusion\stable-diffusion-webui\modules\launch_utils.py", line 115, in run
    raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't checkout {name}'s hash: {commithash}.
Command: "git" -C "D:\stable diffusion\stable-diffusion-webui\repositories\stable-diffusion-stability-ai" checkout cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf
Error code: 128
stderr: fatal: detected dubious ownership in repository at 'D:/stable diffusion/stable-diffusion-webui/repositories/stable-diffusion-stability-ai'
'D:/stable diffusion/stable-diffusion-webui/repositories/stable-diffusion-stability-ai' is on a file system that does not record ownership
To add an exception for this directory, call:

        git config --global --add safe.directory 'D:/stable diffusion/stable-diffusion-webui/repositories/stable-diffusion-stability-ai'

Press any key to continue . . .
```


### Additional information

_No response_