AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
143.59k stars 27.03k forks source link

[Bug]: "fatal: detected dubious ownership in repository" #16364

Open wiseman-timelord opened 3 months ago

wiseman-timelord commented 3 months ago

Checklist

What happened?

when I ran webui...

fatal: detected dubious ownership in repository at 'D:/ProgsOthers/StableDiffusion-WebUI/sd test/stable-diffusion-webui'
'D:/ProgsOthers/StableDiffusion-WebUI/sd test/stable-diffusion-webui' is owned by:
        BUILTIN/Administrators (S-1-5-32-544)
but the current user is:
        ######-#######/##### (S-1-5-21-3082892508-2244180325-9347525-1001)
To add an exception for this directory, call:

        git config --global --add safe.directory 'D:/ProgsOthers/StableDiffusion-WebUI/sd test/stable-diffusion-webui'
fatal: detected dubious ownership in repository at 'D:/ProgsOthers/StableDiffusion-WebUI/sd test/stable-diffusion-webui'
'D:/ProgsOthers/StableDiffusion-WebUI/sd test/stable-diffusion-webui' is owned by:
        BUILTIN/Administrators (S-1-5-32-544)
but the current user is:
        DESKTOP-8UON8OD/Mastar (S-1-5-21-3082892508-2244180325-9347525-1001)
To add an exception for this directory, call:

        git config --global --add safe.directory 'D:/ProgsOthers/StableDiffusion-WebUI/sd test/stable-diffusion-webui'

...however...the correct command was...

git config --global safe.directory "D:/ProgsOthers/StableDiffusion-WebUI/sd test/stable-diffusion-webui"

Steps to reproduce the problem

Windows 10 non-wsl, python 3.10.6

What should have happened?

x

What browsers do you use to access the UI ?

No response

Sysinfo

x

Console logs

x

Additional information

x

dhwz commented 3 months ago

This is unrelated to the webui, this message was sent by git client not the webui code.

viking1304 commented 3 months ago

Even your problem is not related to webui itself, I will tell you what you did wrong. Do not run commands as admin.

Create a new folder (as user) and open a normal (non-admin) CMD window. Then try again.

Find step by step guide for your card here