You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use a repository that has been initialized like this:
mkdir git
mkdir work
git --git-dir=пit/test --work-tree=work/test init
But it doesn't work. For example, when requesting untracked_files I get the error:
raise GitCommandError(remove_password_if_present(self.args), status, errstr)
git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
cmdline: git status --porcelain --untracked-files
stderr: 'fatal: not a git repository (or any of the parent directories): .git
There most definitely isn't any test for this usecase, and certain assumptions aren't met anymore leading to this failure.
The trick here is that git stores the worktree location in its configuration, which allows it work as normal at least while the CWD is the repository itself.
Hello!
I'm trying to use a repository that has been initialized like this:
But it doesn't work. For example, when requesting untracked_files I get the error:
My code:
The text was updated successfully, but these errors were encountered: