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

Re: Git: "No you can't handle my root!" (?)

From
Jeff King <peff@peff.net>
Date
Oct 12, 2009, 18:35 UTC
Message-ID
<20091012183519.GA10686@coredump.intra.peff.net>
In-Reply-To
<20091012142017.vrs4v2cc8wgws8g4@webmail.demarque.qc.ca>
On Mon, Oct 12, 2009 at 02:20:17PM -0400, sylvain@demarque.qc.ca wrote:
Show 8 quoted lines
> >It's more of "a note to the future generation of developers": "Hey guys,
> >we didn't need that working, but if you have a night to spare could you
> >please finish that?"
> 
> Ok, then I won't wait for it to work. I will dive in Git's code and
> play the "future generation of developers" part... some day. ;-)
> 
> Thank you! :-)

I think that it sort of works, actually. It seems to do OK if you do something like:

  $ GIT_DIR=/path/to/store/repo; export GIT_DIR
  $ GIT_WORK_TREE=/; export GIT_WORK_TREE
  $ git init
  $ cd /etc/whatever
  $ git add .
But it does not work if you try to make things work automatically:
  $ cd /
  $ git init
  $ cd /etc/whatever
  $ git add .

So probably the bug is in detecting the location of the work tree when it is not explicitly given. You can use the explicit style as a workaround for now.

-Peff
Previous: Alex RiesenNext: sylvain@demarque.qc.ca
Message 7 of 18 in “Git: "No you can't handle my root!" (?)”
  1. sylvain@demarque.qc.caOct 12, 2009
  2. sylvain@demarque.qc.caOct 12, 2009
  3. Steven NoonanOct 12, 2009
  4. Alex RiesenOct 12, 2009
  5. sylvain@demarque.qc.caOct 12, 2009
  6. Alex RiesenOct 12, 2009
  7. Jeff KingOct 12, 2009
  8. sylvain@demarque.qc.caOct 12, 2009
  9. Tony FinchOct 13, 2009
  10. Markus HeidelbergOct 12, 2009
  11. Matthieu MoyOct 12, 2009
  12. Daniele SegatoOct 12, 2009
  13. Avery PennarunOct 12, 2009
  14. sylvain@demarque.qc.caOct 12, 2009
  15. Jeff KingOct 13, 2009
  16. Daniele SegatoOct 13, 2009
  17. Jeff KingOct 13, 2009
  18. Wesley J. LandakerOct 15, 2009

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.