When creating branch c/d check that branch c does not already exists.
authorChristian Couder <chriscool@tuxfamily.org>
Thu, 28 Sep 2006 05:00:38 +0000 (07:00 +0200)
committerJunio C Hamano <junkio@cox.net>
Thu, 28 Sep 2006 05:26:31 +0000 (22:26 -0700)
commit5be7649131379e49f27d89cb6dd5bd8d0912a3d6
tree55eb3555784323bba227ade1a14b9b4647138950
parent919a3c981323b6f919747bf6756aa8f5af09361f
When creating branch c/d check that branch c does not already exists.

With packed refs, there may not be a ".git/refs/heads/c" file
when branch c exists. And currently in this case, there is no check
to prevent creation of branch c/d.

This should probably be rewritten in C and done after the ref lock
has been taken to make sure no race exists though.

This is mainly to make all test cases in "t3210-pack-refs.sh" work.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-branch.sh