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
pre-commit version: 2.12.1
sys.version:
3.8.10 (default, Mar 15 2022, 12:22:08)
[GCC 9.4.0]
sys.executable: /usr/bin/python3
os.name: posix
sys.platform: linux
error information
An unexpected error has occurred: ValueError: too many values to unpack (expected 4)
Traceback (most recent call last):
File "$HOME/.local/lib/python3.8/site-packages/pre_commit/error_handler.py", line 65, in error_handler
yield
File "$HOME/.local/lib/python3.8/site-packages/pre_commit/main.py", line 357, in main
return hook_impl(
File "$HOME/.local/lib/python3.8/site-packages/pre_commit/commands/hook_impl.py", line 223, in hook_impl
ns = _run_ns(hook_type, color, args, stdin)
File "$HOME/.local/lib/python3.8/site-packages/pre_commit/commands/hook_impl.py", line 195, in _run_ns
return _pre_push_ns(color, args, stdin)
File "$HOME/.local/lib/python3.8/site-packages/pre_commit/commands/hook_impl.py", line 113, in _pre_push_ns
_, local_sha, remote_branch, remote_sha = line.split()
ValueError: too many values to unpack (expected 4)
The text was updated successfully, but these errors were encountered:
describe your issue
I ran
and expected the hook to run properly, but it failed with a somewhat subtle error:
It was more clear from the
pre-commit.log
file, though (see below). I reproduced the issue using HEAD (f9473e7) as well.pre-commit --version
2.12.1
.pre-commit-config.yaml
~/.cache/pre-commit/pre-commit.log (if present)
version information
error information
The text was updated successfully, but these errors were encountered: