From 0328e7fc5c42feed51fb34a9baf16f41b188b806 Mon Sep 17 00:00:00 2001 From: Stephen Nicholas Swatman Date: Sun, 8 Dec 2024 21:44:16 +0100 Subject: [PATCH] Explicitly disable git pager in pre-commit This is a copy of https://github.com/acts-project/acts/pull/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. --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8f668c53b..515c72c2f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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