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

GIT_DIR question

From
YLYakov Lerner <iler.ml@gmail.com>
Date
Jun 17, 2007, 15:34 UTC
Message-ID
<f36b08ee0706170834m464ce57dl3fd5b549b23abb16@mail.gmail.com>
In-Reply-To
<f36b08ee0706170829w59979d86i7bf09bc35ff28fca@mail.gmail.com>

I wanted to create cloned repo, but with metaninfo separately from data. I cloned the repo ( git-clone ~/repo ~/x) , then I moved ~/x/.git to different place (mv ~/x/.git ~/git); then exported GIT_DIR=~/git; then cd ~/x; But now 'git status' says 'fatal: runstatus must be run in a work tree' . Why ?

'ls $GIT_DIR'  shows
  FETCH_HEAD  HEAD  ORIG_HEAD  branches  config
  description  hooks  index  info  logs  objects  refs
This is ok, no ?

Thanks Yakov

Next: Matthias Lederhofer
Message 1 of 4 in “GIT_DIR question”
  1. Yakov LernerJun 17, 2007
  2. Matthias LederhoferJun 17, 2007
  3. Yakov LernerJun 18, 2007
  4. Matthias LederhoferJun 19, 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.