@matheusbsbs / matheus-bagliano / commits / 936a9508cc
Fork 0

git-branch: remove D/F check done by hand.

Now ref creation codepath in lock_ref_sha1() and friends notices the directory/file conflict situation, we do not do this by hand in git-branch anymore. Signed-off-by: Junio C Hamano <junkio@cox.net>

Junio C Hamano committed Sep 30, 2006 at 15:21 UTC 936a9508cc0d5369b00c76ee63cdb81556e7be39
1 file changed -10
git-branch.sh
-10
@@ -121,16 +121,6 @@ then
121 done
122 fi
123
124 -branchdir=$(dirname $branchname)
125 -while test "$branchdir" != "."
126 -do
127 - if git-show-ref --verify --quiet -- "refs/heads/$branchdir"
128 - then
129 - die "$branchdir already exists."
130 - fi
131 - branchdir=$(dirname $branchdir)
132 -done
133 -
124 prev=''
125 if git-show-ref --verify --quiet -- "refs/heads/$branchname"
126 then