Skip to content

Commit

Permalink
Explicitly disable git pager in pre-commit
Browse files Browse the repository at this point in the history
This is a copy of acts-project/acts#3928; long
story short, if git doesn't properly detect that it is not in a TTY, it
will hang pre-commit. Therefore, this explicitly disables paging.
  • Loading branch information
stephenswat committed Dec 8, 2024
1 parent 033b4fc commit e03d54f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ repos:
- id: leftover_conflict_markers
name: Leftover conflict markers
language: system
entry: git diff --staged --check
entry: git --no-pager diff --staged --check

0 comments on commit e03d54f

Please sign in to comment.