Skip to content

Commit 137313f

Browse files
authored
Merge pull request #13 from Space48/fix-not-a-tty-precommit-hook
Fix "Not a TTY device" issue in precommit hook
2 parents 0c9ee31 + 469cbbd commit 137313f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

githooks/warden/pre-commit

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
DIFF=$(git -c diff.mnemonicprefix=false -c diff.noprefix=false --no-pager diff -r -p -m -M --full-index --no-color --staged | cat)
77

88
# Run GrumPHP
9-
[ "$DIFF" == '' ] || (cd "./" && printf "%s\n" "${DIFF}" | warden env run --rm php-fpm 'vendor/phpro/grumphp/bin/grumphp' 'git:pre-commit' '--skip-success-output')
9+
[ "$DIFF" == '' ] || (cd "./" && printf "%s\n" "${DIFF}" | warden env run -T --rm php-fpm 'vendor/phpro/grumphp/bin/grumphp' 'git:pre-commit' '--skip-success-output')

0 commit comments

Comments
 (0)