From: Junio C Hamano Date: Mon, 06 Mar 2006 01:33:25 GMT Subject: Re: git clone does not work with GIT_OBJECT_DIRECTORY set Message-ID: <7vmzg4cq6y.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <20060306012115.GG20768@kvack.org> Benjamin LaHaise writes: > And another bug (linux-2.6.git was created with a clone of git://.../ > while GIT_OBJECT_DIRECTORY was set): > > $ git clone linux-2.6.git bootcache.git > fatal: '/home/bcrl/linux-2.6.git/.git': unable to chdir or not a git archive > fatal: unexpected EOF > clone-pack from '/home/bcrl/linux-2.6.git/.git' failed. > $ Please try it without GIT_OBJECT_DIRECTORY and see it works correctly (I think it should). If that is the case, maybe git-clone should explicitly unset GIT_OBJECT_DIRECTORY.