All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
To: Theodore Tso <tytso@mit.edu>
Cc: Junio C Hamano <junkio@cox.net>,
	torvalds@linux-foundation.org, git@vger.kernel.org
Subject: Re: linux-2.6.git/packed-refs???
Date: Tue, 13 Feb 2007 19:41:24 +0100 (CET)	[thread overview]
Message-ID: <Pine.LNX.4.63.0702131937240.22628@wbgn013.biozentrum.uni-wuerzburg.de> (raw)
In-Reply-To: <20070213181610.GA2782@thunk.org>

Hi,

On Tue, 13 Feb 2007, Theodore Tso wrote:

> 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

      reply	other threads:[~2007-02-13 18:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-13  9:27 linux-2.6.git/packed-refs??? Junio C Hamano
2007-02-13  9:48 ` [PATCH] Do not run git-pack-refs by default for now from git-gc Junio C Hamano
2007-02-13 10:03   ` Johannes Schindelin
2007-02-13 10:29     ` Jeff King
2007-02-13 10:55       ` Johannes Schindelin
2007-02-13 17:59         ` Junio C Hamano
2007-02-13 13:01       ` [PATCH] git-gc: run pack-refs by default unless the repo is bare Johannes Schindelin
2007-02-13 18:16 ` linux-2.6.git/packed-refs??? Theodore Tso
2007-02-13 18:41   ` Johannes Schindelin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.63.0702131937240.22628@wbgn013.biozentrum.uni-wuerzburg.de \
    --to=johannes.schindelin@gmx.de \
    --cc=git@vger.kernel.org \
    --cc=junkio@cox.net \
    --cc=torvalds@linux-foundation.org \
    --cc=tytso@mit.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.