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

Re: Corrupt pack file using older versions of git on a newer repo..

From
Nicolas Pitre <nico@cam.org>
Date
Dec 20, 2006, 15:30 UTC
Message-ID
<Pine.LNX.4.64.0612201024370.18171@xanadu.home>
In-Reply-To
<BAYC1-PASMTP11ADF6C984028A9DED853FAECF0@CEZ.ICE>
On Wed, 20 Dec 2006, Sean wrote:
Show 11 quoted lines
> 
> This is probably expected behavior, but when bisecting another Git
> issue[1], i found that after a fresh clone of the git repository using
> 1.4.4.2 I got the following corrupt pack file when accessing that repo
> with an old version of git:
> 
> $ git --version
> git version 1.4.2
> 
> $ git log
> fatal: corrupted pack file .git/objects/pack/pack-d75f6a8307f8d8ce9727fe27107486839c54aef6.pack

To make that repository accessible with older git versions simply run git-repack -a -d using version 1.4.4.2.

The clone with version 1.4.4.2 added OBJ_OFS_DELTA objects to the pack which older git versions don't know about. Those objects are used for pack transport when both ends know about them as they take less space. But the repack doesn't use them by default so a full repack will get rid of them automatically.

Previous: Sean
Message 2 of 2 in “Corrupt pack file using older versions of git on a newer repo..”
  1. SeanDec 20, 2006
  2. Nicolas PitreDec 20, 2006

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.