git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: $GIT_DIR usage

From
DZDan Zwell <dzwell@gmail.com>
Date
Aug 5, 2007, 13:02 UTC
Message-ID
<46B5CA50.3050500@gmail.com>
In-Reply-To
<Pine.LNX.4.64.0708051332230.14781@racer.site>
Johannes Schindelin wrote:
Show 18 quoted lines
> 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

Previous: Johannes SchindelinNext: Johannes Schindelin
Message 5 of 6 in “$GIT_DIR usage”
  1. Dan ZwellAug 5, 2007
  2. Dmitry KakurinAug 5, 2007
  3. Dan ZwellAug 5, 2007
  4. Johannes SchindelinAug 5, 2007
  5. Dan ZwellAug 5, 2007
  6. Johannes SchindelinAug 5, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.