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

Re: git pull failure, truncated object

From
Nicolas Pitre <nico@cam.org>
Date
May 8, 2007, 15:41 UTC
Message-ID
<alpine.LFD.0.99.0705081140000.24220@xanadu.home>
In-Reply-To
<17984.35097.568689.482933@lisa.zopyra.com>
On Tue, 8 May 2007, Bill Lear wrote:
Show 17 quoted lines
> He did a git-gc, twice, and retried.  Still failed.
> 
> So, he called me in and we tried to see if the server was acting up
> --- perhaps an NFS problem, as we've had those before, but got very
> different error messages.  Watched the log file from git-daemon, and
> saw nothing.  Finally we took a look at the local repos
> .git/objects/4b, and 4b93eb81265ea4f2b436618a4b1c3bea2bedf06d was of
> length 0.
> 
> So, I looked in the man page of git-gc and thought to try --prune,
> as this was not an active repository.  This worked, and then
> the pull did as well.
> 
> I'm wondering why git-gc did not at least warn us of this problem when
> we tried it.  It appeared to us that git-gc gave our repo a clean bill
> of health, and so we turned our attention to the remote and
> investigated there, instead of continuing in the local repo.
git-gc != git-fsck.
Nicolas
Previous: Shawn O. PearceNext: Bill Lear
Message 4 of 6 in “git pull failure, truncated object”
  1. Bill LearMay 8, 2007
  2. Shawn O. PearceMay 8, 2007
  3. Shawn O. PearceMay 8, 2007
  4. Nicolas PitreMay 8, 2007
  5. Bill LearMay 8, 2007
  6. Nicolas PitreMay 8, 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.