On 7 January 2011 03:13, Marius Mårnes Mathiesen <marius.mathie...@gmail.com> wrote: > On Thu, Jan 6, 2011 at 9:15 PM, Steven Sroka <sroka.ste...@gmail.com> wrote: >> Hmmm.... I did so, but it is taking forever to generate the tarball. >> Probably because I'm trying to tar the entire repo that Gitorious >> itself is developed in? .) Does the tarball generate each time someone >> wants it? Or is my timing just bad and I'm trying to download the >> tarball at the same time the tarball is regularly scheduled to be >> generated? .) > > Generated tarballs will be cached for some time, so if the generated > file exists it should be served from the file system. > >> I am helping someone with a script to pull in a copy of a repo hosted >> on gitorious. If the tarball simply generates once in a while, how >> would this work from a script? He believes that trying to download a >> snapshot tarball would be a good first option to get a copy of a repo, >> then if something fails, the script would fall back to cloning the >> repo 'manually' (ie. without the tarball). Would I tell the script to >> download the tarball from the same location that the link you >> mentioned before points to? Or does the tarball generate each time the >> link is accessed? > > The tarballs are generated asynchronously, the web app will respond > immediately and fires off an async message to another process that > actually generates the tarball. The browser will poll the server, > which checks if the tarball is done generating. It may not work in > headless scripts, because of this polling. > >> For example, this is where the link points to, to get the tarball: >> http://gitorious.org/gitorious/mainline/archive-tarball/bfab7ec6 >> Just get the script to download the tarball from there? > > You couldn't just use git to pull the repository?
git would be used, but the compressed tarball would be quicker to download if the maintainer of the script I was talking about could program the script to download the tarball first. For efficiencies sake .) Btw, I keep getting this error when I try to clone the Qt repo that I need, # kdesrc-build running: 'git' 'clone' '-v' '--' 'git://gitorious.org/+kde-developers/qt/kde-qt.git' '/home/steven/kdesrc/qt-copy' Initialized empty Git repository in /home/steven/kdesrc/qt-copy/.git/ fatal: The remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed Do you know why Gitorious keeps dropping the connection? > > Cheers, > - Marius > > -- > To post to this group, send email to gitorious@googlegroups.com > To unsubscribe from this group, send email to > gitorious+unsubscr...@googlegroups.com > -- Steven Sroka -- To post to this group, send email to gitorious@googlegroups.com To unsubscribe from this group, send email to gitorious+unsubscr...@googlegroups.com