Hey Marius, Thank you for this information! I'll post back to the mailing list a script if I get one working reasonably well.
Cheers, nate On Thu, Oct 21, 2010 at 4:17 AM, Marius Mårnes Mathiesen < [email protected]> wrote: > On Wed, Oct 20, 2010 at 6:32 PM, Nate P <[email protected]> wrote: > >> I think I must be missing something obvious, but how do you import >> existing repos into a new local install of Gitorious? I see that >> gitorious has it's own special naming scheme for the repos you create >> in it, so I assume one needs to do some kind of formal import? I have >> about 50 repos and am hoping there is some easy way to suck them in? >> > > The hashed path is something Gitorious uses on repositories created in the > "normal" way, it generates a path and then creates the Git repository on > disk in that location. > > If you add the repositories manually (ie. by creating a script or using the > console), there are two things you should do: > - Set the hashed_path value for the repositories to be the location of the > repositories on disk, inside the repository root. If you have a repository > named "webkit" inside the "webkit" directory in your repository root, you > would set the repository's hashed_path to be "webkit/webkit" > - Once you're done adding the repository you need to set the ready field of > the database to true. This is how Gitorious internally determines whether a > repository has been created and is ready to be used. > > Apart from these two points, the source code (or here, if someone feels up > to it) should guide you in the right direction. You need a project first, > and you should set the project field of the repositories you created to this > project object (eg. repository = > Project.find_by_slug("webkit").repositories.build ...). > > Cheers, > - Marius > > -- > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<gitorious%[email protected]> > -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected]
