Resolved 89 packages in 951ms
Audited 89 packages in 0.23ms
An error has occurred: FatalError: git failed. Is it installed, and are you in a Git repository directory?
Check the log at /home/vscode/.cache/pre-commit/pre-commit.log
[36491 ms] postCreateCommand failed with exit code 1. Skipping any further user-provided commands.
```
An error has occurred: FatalError: git failed. Is it installed, and are you in a Git repository directory?
```
```
Traceback (most recent call last):
File "/home/vscode/.local/ha-venv/lib/python3.12/site-packages/pre_commit/git.py", line 58, in get_root
cmd_output('git', 'rev-parse', '--show-cdup')[1].strip(),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vscode/.local/ha-venv/lib/python3.12/site-packages/pre_commit/util.py", line 117, in cmd_output
returncode, stdout_b, stderr_b = cmd_output_b(*cmd, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vscode/.local/ha-venv/lib/python3.12/site-packages/pre_commit/util.py", line 111, in cmd_output_b
raise CalledProcessError(returncode, cmd, stdout_b, stderr_b)
pre_commit.util.CalledProcessError: command: ('/usr/local/bin/git', 'rev-parse', '--show-cdup')
return code: 128
stdout: (none)
stderr:
fatal: not a git repository (or any parent up to mount point /workspaces)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/vscode/.local/ha-venv/lib/python3.12/site-packages/pre_commit/error_handler.py", line 73, in error_handler
yield
File "/home/vscode/.local/ha-venv/lib/python3.12/site-packages/pre_commit/main.py", line 373, in main
_adjust_args_and_chdir(args)
File "/home/vscode/.local/ha-venv/lib/python3.12/site-packages/pre_commit/main.py", line 183, in _adjust_args_and_chdir
toplevel = git.get_root()
^^^^^^^^^^^^^^
File "/home/vscode/.local/ha-venv/lib/python3.12/site-packages/pre_commit/git.py", line 64, in get_root
raise FatalError(
pre_commit.errors.FatalError: git failed. Is it installed, and are you in a Git repository directory?
```