Browse Source

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>
maint
Junio C Hamano 19 years ago
parent
commit
936a9508cc
  1. 10
      git-branch.sh

10
git-branch.sh

@ -121,16 +121,6 @@ then @@ -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

Loading…
Cancel
Save