]> git.ipfire.org Git - thirdparty/git.git/commit - refs.c
ref locking: allow 'foo' when 'foo/bar' used to exist but not anymore.
authorJunio C Hamano <junkio@cox.net>
Sat, 30 Sep 2006 09:25:30 +0000 (02:25 -0700)
committerJunio C Hamano <junkio@cox.net>
Sat, 30 Sep 2006 22:07:58 +0000 (15:07 -0700)
commitbc7127ef0f81d996e9691c6c898b926867aae89f
treecec66ad6ad7ecd427cb22aa826454de3d22b013c
parentfc12f0829d027a6f7a86b38ae56b1424f2378470
ref locking: allow 'foo' when 'foo/bar' used to exist but not anymore.

It is normal to have .git/refs/heads/foo directory which is
empty after the last branch whose name starts with foo/ is
removed.  Make sure we notice this case and allow creation of
branch foo by removing the empty directory.

Signed-off-by: Junio C Hamano <junkio@cox.net>
refs.c