Comment 11 for bug 878085

Revision history for this message
Liviu Andronic (landronimirc) wrote :

I too have been hit with this issue and here are my findings.

I am trying to mirror SuperTux from GIT on Google Code [1]. As others have noticed, Launchpad fails to do this automatically. [2][3]
[1] https://code.google.com/p/supertux/
[2] https://code.launchpad.net/~landronimirc/supertux/master
[3] http://launchpadlibrarian.net/125511238/landronimirc-supertux-master.log

What is strange though is that 'bzr-git' works fine if it is invoked on a local clone of the project. So this is what I did:
$ mkdir /tmp/supertux
$ mkdir /tmp/supertux-bzr
$ cd /tmp/supertux
$ git clone https://code.google.com/p/supertux/
$ cd /tmp/supertux-bzr
$ bzr branch /tmp/supertux
$ cd master
$ bzr push lp:~landronimirc/supertux/trunk

And voila: I have imported SuperTux into Launchpad. [4]
[4] https://code.launchpad.net/~landronimirc/supertux/trunk

Now to update it should suffice, I think, to:
$ cd /tmp/supertux
$ git pull
$ cd /tmp/supertux-bzr/master
$ bzr update /tmp/supertux
$ bzr push lp:~landronimirc/supertux/trunk

I guess I could wrap this up into a cron job to automate the process.

But here's a question to the 'bzr-git' devels: Why would 'bzr branch ..' fail while importing directly from Google Code, but work when the GIT repo has first been cloned locally? Could this be implemented on Launchpad to allow automatic code imports from Google GIT?