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

Re: [PATCH] Make git-prune submodule aware (and fix a SEGFAULT in the process)

From
APAndy Parkins <andyparkins@gmail.com>
Date
Aug 17, 2007, 08:39 UTC
Message-ID
<200708170939.47214.andyparkins@gmail.com>
In-Reply-To
<200707021356.58553.andyparkins@gmail.com>
On Monday 2007, July 02, Andy Parkins wrote:
Show 5 quoted lines
> This repository was a strange one in that it was being used to provide
> its own submodule.  That is, the repository was cloned into a
> subdirectory, an independent branch checked out in that subdirectory,
> and then it was marked as a submodule.  git-prune then failed in the
> above manner.

I think I've stumbled on another place where this is happening. git-upload-pack is crashing for me with a similar "Object is commit not blob" error just before.

I'm happy to try and track it down, but I'm having difficulty because I think the crash is happening in the process on the remote system, so I'm not getting a core dump I can use.

Could any of the guru's give me a guide to upload-pack.c? I assume the problem is going to be the same as it was for git-prune, the hash for the gitlink object in the tree is being assumed to be an object in the ODB; which isn't the case with gitlink entries. Where would that be happening in git-upload-pack? The fix is going to be..

 if( S_ISGITLINK(mode))
      continue;
But I've got no idea where to put it :-)
Andy
-- 
Dr Andy Parkins, M Eng (hons), MIET
andyparkins@gmail.com
Previous: Junio C HamanoNext: Johannes Sixt
Message 3 of 8 in “Make git-prune submodule aware (and fix a SEGFAULT in the process)”
  1. Make git-prune submodule aware (and fix a SEGFAULT in the process)Andy Parkins, Jul 2, 2007
  2. Junio C HamanoJul 2, 2007
  3. Andy ParkinsAug 17, 2007
  4. Johannes SixtAug 17, 2007
  5. Linus TorvaldsAug 17, 2007
  6. Junio C HamanoAug 17, 2007
  7. Andy ParkinsAug 20, 2007
  8. Make thin-pack generation subproject aware.Junio C Hamano, Aug 18, 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.