From: Dan Zwell Date: Sun, 05 Aug 2007 13:02:08 GMT Subject: Re: $GIT_DIR usage Message-ID: <46B5CA50.3050500@gmail.com> In-Reply-To: Johannes Schindelin wrote: > Hi, > > On Sun, 5 Aug 2007, Dan Zwell wrote: > >> $ export GIT_DIR="`pwd`/.git_public" >> $ git init >> warning: templates not found /usr/share//git-core/templates/ >> Initialized empty Git repository in /home/user/temp/.git_public/ > > I think that you implicitly created a bare repository with that. Just > check if "git config core.bare" returns true. > > If so, you need to change that in order to have a working tree. > > Hth, > Dscho > > You are exactly right, I accidentally created a bare repository. I can do 2 things: I can change core.bare to true, or I can create .git in the normal way, then move rename it. Both things still have the problem of git not knowing where the working directory is. Is the only way to fix this in 1.5.2.4, or is my only option to upgrade? Thanks, Dan