From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
To: "Michael S. Tsirkin" <mst@dev.mellanox.co.il>
Cc: Junio C Hamano <gitster@pobox.com>, git@vger.kernel.org
Subject: Re: copying objects from another repo?
Date: Tue, 24 Jul 2007 12:14:08 +0100 (BST) [thread overview]
Message-ID: <Pine.LNX.4.64.0707241213000.14781@racer.site> (raw)
In-Reply-To: <20070724103503.GC18701@mellanox.co.il>
Hi,
On Tue, 24 Jul 2007, Michael S. Tsirkin wrote:
> I had some missing objects that I managed to locate
> in another tree. So - how to get them to my repo?
> Here's what I came up with:
>
> cd ~/scm/good_tree
> git tag -f foo dfaa7049e9ebe227cfcffc49d3de16716764bcbd
> cd ~/scm/bad_tree
> git fetch-pack ~/scm/good_tree dfaa7049e9ebe227cfcffc49d3de16716764bcbd
>
> And I repeated this for all missing objects.
> But is there a better way to do this?
This is what I have done in such a case:
In the valid repo:
$ git gc
$ scp .git/objects/packs/* the-broken:repo.git/objects/packs/
In the broken repo:
$ git gc
Done.
Hth,
Dscho
prev parent reply other threads:[~2007-07-24 11:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-24 10:35 copying objects from another repo? Michael S. Tsirkin
2007-07-24 11:14 ` 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.64.0707241213000.14781@racer.site \
--to=johannes.schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=mst@dev.mellanox.co.il \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).