summaryrefslogtreecommitdiff
path: root/t/t7503-pre-commit-hook.sh
Commit message (Collapse)AuthorAgeFilesLines
* Style fixes for pre-commit hook testsWincent Colaiuta2007-12-101-33/+57
| | | | | | | | | | | As pointed out by Junio on the mailing list, surrounding tests in double quotes can lead to bugs wherein variables get substituted away, so this isn't just style churn but important to prevent others from looking at these tests in the future and thinking that this is "the way" that Git tests should be written. Signed-off-by: Wincent Colaiuta <win@wincent.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
* Add tests for pre-commit and commit-msg hooksWincent Colaiuta2007-12-091-0/+64
As desired, these pass for git-commit.sh, fail for builtin-commit (prior to the fixes), and succeeded for builtin-commit (after the fixes). Signed-off-by: Wincent Colaiuta <win@wincent.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>