-
Notifications
You must be signed in to change notification settings - Fork 195
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
Summary
I wanted to test the builtin hook.
prek try-repo builtin check-merge-conflict -ashould run the check-merge-conflict on all files, but instead:
error: Failed to determine repository and revision
caused by: Command `get head rev` exited with an error:
[status]
exit status: 128
[stderr]
fatal: 'builtin' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
I'm a big fan of the repo - it's great to see a better alternative of the original pre-commit!
Platform
linux (Debian)
Version
prek 0.3.1
.pre-commit-config.yaml
N/A
Log file
2026-02-01T13:08:03.169951Z DEBUG prek: 0.3.1
2026-02-01T13:08:03.169975Z DEBUG Args: ["prek", "try-repo", "builtin", "check-merge-conflict", "--directory", "tests/merge-conflict"]
2026-02-01T13:08:03.170067Z TRACE Executing /usr/bin/git ls-remote --exit-code builtin HEAD
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers