mirror of
https://github.com/git-for-windows/git.git
synced 2026-03-15 17:42:52 -05:00
clone: do not create remotes/origin nor origin branch in a bare repository.
It is simply pointless, since no merges will ever happen in such a repository. Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
@@ -209,7 +209,7 @@ esac
|
||||
|
||||
cd "$D" || exit
|
||||
|
||||
if test -f "$GIT_DIR/HEAD"
|
||||
if test -f "$GIT_DIR/HEAD" && test -z "$bare"
|
||||
then
|
||||
head_points_at=`git-symbolic-ref HEAD`
|
||||
case "$head_points_at" in
|
||||
|
||||
Reference in New Issue
Block a user