Git-import doesn't work for some Gitorious repos

Asked by Saikrishna Arcot

Hi,

I tried using git-import on a Gitorious repo, but it didn't work.

bzr git-import git://gitorious.org/fg/flightgear.git
bzr: ERROR: The remote server unexpectedly closed the connection.

bzr git-import git://gitorious.org/fg/simgear.git
bzr: ERROR: The remote server unexpectedly closed the connection.

bzr git-import git://gitorious.org/fg/fgdata.git
bzr: ERROR: The remote server unexpectedly closed the connection.

However, it did (partially) work on this repo (because it was small?) (partially because it contains submodules, but it got past the above error and got some data).

bzr git-import git://gitorious.org/fg/fgmeta.git
bzr: ERROR: The repository you are fetching from contains submodules, which are not yet supported.

It does work on git://gitorious.org/fg/maclauncher.git

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Git Plugin Edit question
Assignee:
No assignee Edit question
Solved by:
Jelmer Vernooij
Solved:
Last query:
Last reply:
Revision history for this message
Best Jelmer Vernooij (jelmer) said :
#1

On Sun, 2013-02-10 at 14:50 +0000, Saikrishna Arcot wrote:
> New question #221522 on Bazaar Git Plugin:
> https://answers.launchpad.net/bzr-git/+question/221522
>
> Hi,
>
> I tried using git-import on a Gitorious repo, but it didn't work.
>
> bzr git-import git://gitorious.org/fg/flightgear.git
> bzr: ERROR: The remote server unexpectedly closed the connection.
>
> bzr git-import git://gitorious.org/fg/simgear.git
> bzr: ERROR: The remote server unexpectedly closed the connection.
>
> bzr git-import git://gitorious.org/fg/fgdata.git
> bzr: ERROR: The remote server unexpectedly closed the connection.
Not sure what's happening here. This might be a bug in dulwich.

You can work around it by cloning the repository locally first:

$ git clone git://gitorious.org/fg/flightgear.git fg.git
$ bzr git-import fg.git fg.bzr

> However, it did (partially) work on this repo (because it was small?) (partially because it contains submodules, but it got past the above error and got some data).
>
> bzr git-import git://gitorious.org/fg/fgmeta.git
> bzr: ERROR: The repository you are fetching from contains submodules, which are not yet supported.
This is a known limitation in bzr-git.

Cheers,

Jelmer

Revision history for this message
Jelmer Vernooij (jelmer) said :
#2

On Sun, 2013-02-10 at 18:15 +0000, Jelmer Vernooij wrote:
> Question #221522 on Bazaar Git Plugin changed:
> https://answers.launchpad.net/bzr-git/+question/221522
>
> Status: Open => Answered
>
> Jelmer Vernooij proposed the following answer:
> On Sun, 2013-02-10 at 14:50 +0000, Saikrishna Arcot wrote:
> > New question #221522 on Bazaar Git Plugin:
> > https://answers.launchpad.net/bzr-git/+question/221522
> >
> > Hi,
> >
> > I tried using git-import on a Gitorious repo, but it didn't work.
> >
> > bzr git-import git://gitorious.org/fg/flightgear.git
> > bzr: ERROR: The remote server unexpectedly closed the connection.
> >
> > bzr git-import git://gitorious.org/fg/simgear.git
> > bzr: ERROR: The remote server unexpectedly closed the connection.
> >
> > bzr git-import git://gitorious.org/fg/fgdata.git
> > bzr: ERROR: The remote server unexpectedly closed the connection.
> Not sure what's happening here. This might be a bug in dulwich.
>
> You can work around it by cloning the repository locally first:
>
> $ git clone git://gitorious.org/fg/flightgear.git fg.git
> $ bzr git-import fg.git fg.bzr
Unfortunately it looks like this repository contains submodules as well,
so you won't have much like importing it either even if you clone it
locally first.

Cheers,

Jelmer

Revision history for this message
Saikrishna Arcot (saiarcot895) said :
#3

Thanks Jelmer Vernooij, that solved my question.