diff options
Diffstat (limited to 't')
-rwxr-xr-x | t/t1800-hook.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/t/t1800-hook.sh b/t/t1800-hook.sh index 3aea1b105f..29718aa991 100755 --- a/t/t1800-hook.sh +++ b/t/t1800-hook.sh @@ -21,6 +21,11 @@ test_expect_success 'git hook run: nonexistent hook' ' test_cmp stderr.expect stderr.actual ' +test_expect_success 'git hook run: nonexistent hook with --ignore-missing' ' + git hook run --ignore-missing does-not-exist 2>stderr.actual && + test_must_be_empty stderr.actual +' + test_expect_success 'git hook run: basic' ' write_script .git/hooks/test-hook <<-EOF && echo Test hook |