-
Notifications
You must be signed in to change notification settings - Fork 117
missing project directory with hierarchical repositories... #217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi! Thanks for your feedback and sorry for the inconvenience. I've done some tests : hierarchical / unique false :
hierarchical / unique true :
Note that I've switched to unique true before deleting the default repository. As this impacts repository's path and name, we can't even delete it correctly now. This is linked to this issue. |
You were right, id did switch 'unique' to true, and thank you for the pointer :) But event when switching it back to false, first repo still miss project repository here, but not consistently…
Then testrepo1 exists as The second repository created is consistently located at Any idea how to debug this ? |
Correction: the intermediate directory is only missing for default repo (not first one) |
In hierarchical mode this is normal. |
Then I'll live with it (even if it doesn't seems so logical) |
What did you expect? |
I expected it to be stored in a project subdir, keeping repositories in the same apparent structure than in redmine and avoiding uniqueness of Repo's names between two project's main repositories. |
I may add this to #199 but I miss a real keyboard now :) |
I think this is for historical reason. At the time Redmine could manage only one repository so the repository's name was the project name and all projects were stored in flat design. Then came the multi-repositories option (and unique identifier). To reproduce your use case, you can simply not use the default repository : don't create one and all repositories will be stored under the same directory named with the project name. |
#210 seems to have a bigger cause:
It seems (to me) that intermediate project(s) directory is inconsistently missing.
I did select 'hierarchical' for repositories a long time ago.
for new projects
Creation of a repo 'testrepo1' under project 'forge' gives
repositories/testrepo1.git
in redmine, if default one since upgrade from v0.6 to v0.7.3Second repository get correct location:
existing projects
When there is a sub-project, project's directory disappears in repos URL…
I have some even more problematic repositories with an extra directory (I missed a bug or may be my fault). Database's repositories/urls says repositories/project1/project2/project2/repo.git, I can see revisions in redmine BUT redmine shows
ssh://git@server/project1/project2/repo.git
which is not the working url… I didn't find how it is generated (no ruby genius here :-( )Hope this can be worked out… Even manually i don't understand how to correct this (without changing existing repo's URL's)
I tried
rake redmine_git_hosting:update_repositories RAILS_ENV=production
and it complains about some missing repositories (those with double project dir)Thank you for your good work and hope this is not an error of mine…
The text was updated successfully, but these errors were encountered: