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

Re: [PATCH 3/5] Clean up work-tree handling

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 27, 2007, 19:20 UTC
Message-ID
<7v8x911wn6.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<Pine.LNX.4.64.0707271146290.14781@racer.site>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 6 quoted lines
> But there is a fundamental question I have to ask: Is there any reason why 
>
> 	$ git --git-dir=/some/where/else.git bla
>
> should pretend that the repo is bare if core.bare == 1?  I mean, we are 
> implicitely setting the work tree to the cwd, no?
I have two repositories at the primary k.org machine.
 - /home/junio/git.git --- this is with a worktree so that I can
   build and test on a FC machine (my primary development
   machine at home is a Debian).
 - /pub/scm/git/git.git/ --- this is a bare repository that is
   mirrored out to git://git.kernel.org/ and friends.
And I usually am in the former.  From time to time, I do this:
 $ GIT_DIR=/pub/scm/git/git.git/ git fsck
 $ GIT_DIR=/pub/scm/git/git.git/ git repack

because I am old fashioned, but I would expect these to be equivalent to the above:

 $ git --git-dir=/pub/scm/git/git.git/ fsck
 $ git --git-dir=/pub/scm/git/git.git/ repack
I do not think these imply that the repository is with worktree.
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 9 of 10 in “Clean up work-tree handling”
  1. 3/5 Clean up work-tree handlingJohannes Schindelin, Jul 26, 2007
  2. Shawn O. PearceJul 26, 2007
  3. Junio C HamanoJul 26, 2007
  4. Johannes SchindelinJul 26, 2007
  5. Junio C HamanoJul 26, 2007
  6. Matthias LederhoferJul 26, 2007
  7. Junio C HamanoJul 26, 2007
  8. Johannes SchindelinJul 27, 2007
  9. Junio C HamanoJul 27, 2007
  10. Johannes SchindelinJul 27, 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.