Skip to content

Commit a756839

Browse files
committed
Ensure TERM is set to avoid tput warnings
At least on a Mac using Tower git client, if TERM was not set, tput dumped out warnings. This suppresses error messages in third party applications that trigger the hooks.
1 parent 9716bb3 commit a756839

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pre-commit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
TERM=${TERM:-unknown}; export TERM
4+
35
git_root=`git rev-parse --show-toplevel`
46
failures=0
57
RC=0

0 commit comments

Comments
 (0)