Message ID | cd14042b065e57f132c27d09005242fc500439e4.1716028366.git.gitgitgadget@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | c8f64781c8b3d44ecb57d14fbffcdbf063583812 |
Headers | show |
Series | Various fixes for v2.45.1 and friends | expand |
diff --git a/t/t1350-config-hooks-path.sh b/t/t1350-config-hooks-path.sh index f6dc83e2aab..45a04929170 100755 --- a/t/t1350-config-hooks-path.sh +++ b/t/t1350-config-hooks-path.sh @@ -41,4 +41,11 @@ test_expect_success 'git rev-parse --git-path hooks' ' test .git/custom-hooks/abc = "$(cat actual)" ' +test_expect_success 'core.hooksPath=/dev/null' ' + git clone -c core.hooksPath=/dev/null . no-templates && + value="$(git -C no-templates config --local core.hooksPath)" && + # The Bash used by Git for Windows rewrites `/dev/null` to `nul` + { test /dev/null = "$value" || test nul = "$value"; } +' + test_done