From 4fb66a62eeb7bfec115cd0058d7a05ab62fc23e7 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Sun, 22 Jan 2006 17:27:52 -0800 Subject: 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 --- git-clone.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git-clone.sh') diff --git a/git-clone.sh b/git-clone.sh index 8e65202320..73fc919800 100755 --- a/git-clone.sh +++ b/git-clone.sh @@ -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 -- cgit v1.2.3