On Thursday, May 23, 2013 2:23:55 PM UTC+2, [email protected] wrote:
>
> This seems to have to do with the changed directory layout in
> gitorious/repositories; the old repos have a name apparently based on SHA-1
> (e.g. 429/e18/bb2375275f8ea135fb6cdf77b6476375d5.git), while the new ones
> follow a project/reponame format. Apparently, when using the git://
> protocol, the old style names are used, since I get log messages in
> /var/log/messages of the form
>
> May 23 14:21:35 github git-daemon[16998]: Request upload-pack for
> '/project/reponame.git'
> May 23 14:21:35 github git-daemon[16998]:
> '/var/www/gitorious/repositories/project/reponame.git' does not appear to
> be a git repository
> Is there an easy way to fix this? E.g., can I systematically symlink the
> new names to the old ones?
>
Just in case anyone else has this problem: I did a
select slug, name, hashed_path from repositories, projects where
repositories.project_id = projects.id;
on the gitorious_production table in MySQL, then wrote a script that
effectively does
ln -s ../hashed_path.git slug/name.git
for each result of that query in /var/www/gitorious/repositories. This
seems to work.
--
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
---
You received this message because you are subscribed to the Google Groups
"Gitorious" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.