On Fri, May 07, 2021 at 05:56:47PM -0400, Jeff King wrote: > > +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