Thread (18 messages) 18 messages, 5 authors, 2023-12-12

Re: [PATCH] setup: recognize bare repositories with packed-refs

From: Adam Majer <hidden>
Date: 2023-11-17 20:44:32

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help