On 2023-11-17 21:32, Adam Majer wrote:
+test_expect_success 'remove empty refs/ subdirectory' ' + git -C bare.git cat-file -e 60dd8ad7d8ed49005c18b7ce9f5b7a45c28df814 && + test_dir_is_empty bare.git/refs/heads && + test_dir_is_empty bare.git/refs/tags && + rm -r bare.git/refs && + GIT_DIR="$PWD"/bare.git git -C bare.git cat-file -e 60dd8ad7d8ed49005c18b7ce9f5b7a45c28df814
In the test, I've first tried to use GIT_CEILING_DIRECTORIES="$PWD" here instead, but git went up into the parent directory anyway. I'm not sure if this is a bug, or feature, or my misunderstanding.
- Adam