提交 936a9508 编写于 作者: J Junio C Hamano

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: NJunio C Hamano <junkio@cox.net>
上级 c0277d15
......@@ -121,16 +121,6 @@ then
done
fi
branchdir=$(dirname $branchname)
while test "$branchdir" != "."
do
if git-show-ref --verify --quiet -- "refs/heads/$branchdir"
then
die "$branchdir already exists."
fi
branchdir=$(dirname $branchdir)
done
prev=''
if git-show-ref --verify --quiet -- "refs/heads/$branchname"
then
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册