Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: fatal: not a git repository (or any of the parent directories): .git #11129

Closed
1 task done
notutTom opened this issue Jun 9, 2023 · 7 comments
Closed
1 task done
Labels
bug-report Report of a bug, yet to be confirmed

Comments

@notutTom
Copy link

notutTom commented Jun 9, 2023

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What happened?

it was my first time trying this and i failed to use it
i have tried some solutions but they just made things worse or they didnt change anything at all

Steps to reproduce the problem

first it told me
venv "D:\Stable Diffusion WebUI\stable-diffusion-webui-1.3.2\stable-diffusion-webui-1.3.2\venv\Scripts\Python.exe"
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
so i use git init
and i opened it again
and it seems that i have a bigger problem

What should have happened?

1.Open that file and show me an ip to use this thing

Commit where the problem happens

1.3.2

What Python version are you running on ?

Python 3.10.x

What platforms do you use to access the UI ?

Windows

What device are you running WebUI on?

CPU

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

@echo off

set PYTHON=
set GIT=
set VENV_DIR=
set COMMANDLINE_ARGS= --skip-torch-cuda-test

call webui.bat

List of extensions

No

Console logs

venv "D:\Stable Diffusion WebUI\stable-diffusion-webui-1.3.2\stable-diffusion-webui-1.3.2\venv\Scripts\Python.exe"
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: <none>
Commit hash: <none>
Traceback (most recent call last):
  File "D:\Stable Diffusion WebUI\stable-diffusion-webui-1.3.2\stable-diffusion-webui-1.3.2\launch.py", line 38, in <module>
    main()
  File "D:\Stable Diffusion WebUI\stable-diffusion-webui-1.3.2\stable-diffusion-webui-1.3.2\launch.py", line 29, in main
    prepare_environment()
  File "D:\Stable Diffusion WebUI\stable-diffusion-webui-1.3.2\stable-diffusion-webui-1.3.2\modules\launch_utils.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:\Stable Diffusion WebUI\stable-diffusion-webui-1.3.2\stable-diffusion-webui-1.3.2\modules\launch_utils.py", line 139, in git_clone
    current_hash = run(f'"{git}" -C "{dir}" rev-parse HEAD', None, f"Couldn't determine {name}'s hash: {commithash}").strip()
  File "D:\Stable Diffusion WebUI\stable-diffusion-webui-1.3.2\stable-diffusion-webui-1.3.2\modules\launch_utils.py", line 101, in run
    raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't determine Stable Diffusion's hash: cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf.
Command: "git" -C "D:\Stable Diffusion WebUI\stable-diffusion-webui-1.3.2\stable-diffusion-webui-1.3.2\repositories\stable-diffusion-stability-ai" rev-parse HEAD
Error code: 128
stderr: fatal: not a git repository (or any of the parent directories): .git

请按任意键继续. . .

Additional information

No response

@notutTom notutTom added the bug-report Report of a bug, yet to be confirmed label Jun 9, 2023
@Bamsjingan
Copy link

Seems same problem here, but slightly different for the Run Time Error code

RuntimeError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check
Press any key to continue . . .

@ArmandoZ
Copy link

Seems that the directory "D:\Stable Diffusion WebUI\stable-diffusion-webui-1.3.2\stable-diffusion-webui-1.3.2\repositories\stable-diffusion-stability-ai" exists but the repository has not been properly cloned.

Can you try deleting the whole "D:\Stable Diffusion WebUI\stable-diffusion-webui-1.3.2\stable-diffusion-webui-1.3.2\repositories\" folder and run webui-user.bat once again?

@navil48
Copy link

navil48 commented Jun 21, 2023

help
venv "D:\StableDifusion\venv\Scripts\Python.exe"
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version:
Commit hash:
Cloning Taming Transformers into D:\StableDifusion\repositories\taming-transformers...

@mockinbirdy
Copy link

Can you try deleting the whole "D:\Stable Diffusion WebUI\stable-diffusion-webui-1.3.2\stable-diffusion-webui-1.3.2\repositories\" folder and run webui-user.bat once again?

Does not solve the problem.

@jiakuaibu
Copy link

same problem here. delete the repositories folder not working

@Tedrer
Copy link

Tedrer commented Aug 15, 2023

Same here

@catboxanon
Copy link
Collaborator

Fixed in #12526

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-report Report of a bug, yet to be confirmed
Projects
None yet
Development

No branches or pull requests

8 participants