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

Re: hitting home directory's parent

From
Daniel Convissor <danielc@analysisandsolutions.com>
Date
Aug 23, 2009, 05:12 UTC
Message-ID
<20090823051244.GB10761@panix.com>
In-Reply-To
<20090822181607.GA25823@coredump.intra.peff.net>
Hi Jeff:
On Sat, Aug 22, 2009 at 02:16:07PM -0400, Jeff King wrote:
> 
> Without looking, I would not be surprised if it is a side effect of
> git trying to look up help-related config.

That explains what's happening. cmd_help() calls git_config(). Though it seems it would be more, uh, helpful, if help produced basic usage output no matter what, and then produce the more detailed config based output if possible.

> Probably it is calling "setup_git_directory_gently" and ignoring an
> error return, but there is a die() inside that function. The bug
> then is that the _gently form is calling die().
Yep.  setup.c, lines 391 and 392 (master branch):
		if (chdir(".."))
			die_errno("Cannot change to '%s/..'", cwd);
> As for fixing the setup code, I am sadly way behind on my git queue and
> not likely to catch up to this anytime soon. So if anybody feels like
> taking a stab at it, that would be very welcome.
Is there a bug tracker y'all use where I can enter a ticket?
Thanks,
--Dan
-- 
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
            data intensive web and database programming
                http://www.AnalysisAndSolutions.com/
 4015 7th Ave #4, Brooklyn NY 11232  v: 718-854-0335 f: 718-854-0409
Previous: Jeff KingNext: Jeff King
Message 9 of 11 in “hitting home directory's parent”
  1. Daniel ConvissorAug 21, 2009
  2. Nguyen Thai Ngoc DuyAug 22, 2009
  3. Daniel ConvissorAug 22, 2009
  4. Nguyen Thai Ngoc DuyAug 22, 2009
  5. Nguyen Thai Ngoc DuyAug 22, 2009
  6. Jeff KingAug 22, 2009
  7. Nguyen Thai Ngoc DuyAug 23, 2009
  8. Jeff KingAug 25, 2009
  9. Daniel ConvissorAug 23, 2009
  10. Jeff KingAug 25, 2009
  11. Daniel ConvissorAug 23, 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.