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

Re: linux-2.6.git/packed-refs???

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Feb 13, 2007, 18:41 UTC
Message-ID
<Pine.LNX.4.63.0702131937240.22628@wbgn013.biozentrum.uni-wuerzburg.de>
In-Reply-To
<20070213181610.GA2782@thunk.org>
Hi,
On Tue, 13 Feb 2007, Theodore Tso wrote:
Show 19 quoted lines
> On Tue, Feb 13, 2007 at 01:27:03AM -0800, Junio C Hamano wrote:
> > I noticed while scanning #git log that it appears that pack-refs
> > was run in your public repo and some people cannot clone over
> > dumb protocols with older git.
> > 
> >     commit 2986c02217f98809d8990e7679edf0f5d99f904d
> >     Author: Junio C Hamano <junkio@cox.net>
> >     Date:   Wed Nov 22 22:24:09 2006 -0800
> > 
> >     git-fetch: fix dumb protocol transport to fetch from pack-pruned ref
> > 
> > was the first revision that aligned dumb protocol clients with
> > pack-ref; unfortunately anything older will not find the ref
> > that was packed.
> 
> Stupid question.  Suppose someone has run git pack-refs on a
> repository.  What is the recommended way to reverse the process.  Is
> the answer is to clone the repository and then throw away the original
> one?  Is there another way to do it?
The easiest way I found here was to do
git-for-each-ref | while read sha1 tag name; do
	git update-ref -m "undo pack-ref" $name $sha1
done
Beware: this is tested once, and copied from memory.

Ciao, Dscho

Previous: Theodore Tso
Message 9 of 9 in “linux-2.6.git/packed-refs???”
  1. Junio C HamanoFeb 13, 2007
  2. Do not run git-pack-refs by default for now from git-gcJunio C Hamano, Feb 13, 2007
  3. Johannes SchindelinFeb 13, 2007
  4. Jeff KingFeb 13, 2007
  5. Johannes SchindelinFeb 13, 2007
  6. Junio C HamanoFeb 13, 2007
  7. git-gc: run pack-refs by default unless the repo is bareJohannes Schindelin, Feb 13, 2007
  8. Theodore TsoFeb 13, 2007
  9. Johannes SchindelinFeb 13, 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.