diff options
| author | Deveshi Dwivedi <deveshigurgaon@gmail.com> | 2025-12-29 18:57:37 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-12-30 09:23:00 +0900 |
| commit | 861dbb1586aaac6f02c8c87dd55e5c0b9862296a (patch) | |
| tree | e569949ebc1645c2c838a690fefe81fd4b2c52b3 | |
| parent | 54a3711a9dd968a04249beef157393d64b579d64 (diff) | |
| download | git-861dbb1586aaac6f02c8c87dd55e5c0b9862296a.tar.xz | |
t5403: use test_path_is_file instead of test -f
Replace 'test -f' with the test_path_is_file in
t5403-post-checkout-hook.sh. This helper provides better error
messages when tests fail, making it easier to debug issues.
Signed-off-by: Deveshi Dwivedi <deveshigurgaon@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
| -rwxr-xr-x | t/t5403-post-checkout-hook.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t5403-post-checkout-hook.sh b/t/t5403-post-checkout-hook.sh index cfaae54739..ade9e5087f 100755 --- a/t/t5403-post-checkout-hook.sh +++ b/t/t5403-post-checkout-hook.sh @@ -110,7 +110,7 @@ test_expect_success 'post-checkout hook is triggered by clone' ' echo "$@" >"$GIT_DIR/post-checkout.args" EOF git clone --template=templates . clone3 && - test -f clone3/.git/post-checkout.args + test_path_is_file clone3/.git/post-checkout.args ' test_done |
