From: "Santi Béjar" <sbejar@gmail.com>
To: "Tom Koelman" <tkoelman@xs4all.nl>
Cc: git@vger.kernel.org
Subject: Re: Can a git repository be initialized with a bundle?
Date: Wed, 13 Feb 2008 10:02:15 +0100 [thread overview]
Message-ID: <8aa486160802130102k42158154t7c81b37171a29243@mail.gmail.com> (raw)
In-Reply-To: <m3abm56zc9.fsf@assurancetourix.xs4all.nl>
On Feb 13, 2008 9:21 AM, Tom Koelman <tkoelman@xs4all.nl> wrote:
>
> Hi,
>
> I got some repository from which I created a bundle like so:
>
> $ git bundle create all.bundle --all
--all does not imply HEAD, so:
$ git bundle create all.bundle --all HEAD
> Now I want to recreate this repository somewhere else:
>
> $ mkdir tmp ; cd tmp ; git init
> Initialized empty Git repository in .git/
> $ git fetch all.bundle
> fatal: Couldn't find remote ref HEAD
you have to say explicitly the branches you want as:
$ git fetch all.bundle master:bundle/master
or with a remote:
$ git remote add bundle all.bundle
$ git fetch bundle
>
> It doesn't matter whether I try to fetch, pull, or add -f to the command
> line, I always get this response.
The same happens with a normal remote repository without a HEAD.
>
> Am I trying to accomplish something that can't be done or am I doing it
> wrong?
I sent a path to support bundles in clone, but it was late for 1.5.4
and at some point "git clone" will be converted to C (now it is a
script). For now you have to do the "git init ; git remote add -f
...", or similar.
Santi
prev parent reply other threads:[~2008-02-13 9:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-13 8:21 Can a git repository be initialized with a bundle? Tom Koelman
2008-02-13 9:02 ` Santi Béjar [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=8aa486160802130102k42158154t7c81b37171a29243@mail.gmail.com \
--to=sbejar@gmail.com \
--cc=git@vger.kernel.org \
--cc=tkoelman@xs4all.nl \
/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).