On Thu, Aug 12, 2010 at 7:28 PM, Dun Peal wrote:
> # The path where git repositories are stored. The actual (bare)
> repositories resides
> # in repository_base_path/#{project.slug}/#{repository.name}.git/:
>
This comment is lying (which a lot of comments seem to do...)
> 1. Why is that obfuscated path used instead on the old instance?
>
This is one of the situations where the needs for gitorious.org and the
needs for a smaller installation conflict, I suppose. With the older
directory scheme, the folder containing the repositories of the most popular
projects would become *very* crowded (slowing down file system operations).
Since we rarely use file system level access to these repositories on
gitorious.org, choosing a more scalable approach made sense for
Gitorious.org. Another thing is that we changed the URLs (including the Git
ones) quite a bit, giving URLs like ~user/project/repo - which means the
file system directory structure didn't make sense anyway.
> 2. Is there a good way to port the repositories to the new instance
> such that they'll use the preferred non-obfuscated form?
>
Gitorious will accept any value in the hashed_path column in the
repositories table, and resolve this relative to the repository base path in
gitorious.yml. In fact, Gitorious itself resides at
/gitorious/mainline.git on the Gitorious.org servers. However,
new repositories will be given one of these hashed paths when created.
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