Thread (8 messages) flat view 8 messages, 3 authors, 2021-05-11

Re: [PATCH] refs: cleanup directories when deleting packed ref

From: Jeff King <hidden>
Date: 2021-05-07 22:02:19

On Fri, May 07, 2021 at 05:56:47PM -0400, Jeff King wrote:
quoted
+test_expect_success 'directory not created deleting packed ref' '
+	git branch d1/d2/r1 HEAD &&
+	git pack-refs --all &&
+	test_path_is_missing .git/refs/heads/d1/d2 &&
+	git branch -d d1/d2/r1 &&
+	test_path_is_missing .git/refs/heads/d1/d2 &&
+	test_path_is_missing .git/refs/heads/d1
+'
...this test passes even without your patch applied. I wonder if there's
something else required to trigger the problem.
If I replace "git branch -d" with "git update-ref -d", then the problem
does trigger (and your patch does indeed clear it up). I wonder what the
difference is.

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help