redmine_git_hosting
redmine_git_hosting copied to clipboard
Question: redmine_git_hosting with Redmine.pm
I think I need Redmine.pm in order to have authenticated access to the repositories using HTTP/HTTPS and Smart HTTP.
I have a site called git.ircan.gc.ca with Apache using Redmine.pm for authenticated access. Here's the catch:
redmine_git_hosting specifically calls the Git repositories with myproject.git; I imagine that's because Gitolite also adds a .git at the end of any repo found in the gitolite.conf file.
BUT here's a an extract of the Redmine.pm comments:
Make sure that all the names of the repositories under /var/www/git/ match exactly the identifier for some project: /var/www/git/myproject.git won't work, due to the way this module extracts the identifier from the URL. /var/www/git/myproject will work, though. You can put both bare and non-bare repositories in /var/www/git, though bare repositories are strongly recommended.
So, even when my repositories are stored correctly in gitolite, I cannot access them via HTTP using Redmine.pm authentication.
How do others do it, if not using Redmine.pm ? The installation instructions are rather sketchy when it comes to HTTP/HTTPS access to the repositories constructed and managed via redmine_git_hosting. It bascally says: "Get Smart HTTP, install it, and it works."
The current version of this plugin (or mine, if you want stability) allows access to repositories like this -- using the http(s) URL syntax:
git clone https://[email protected]/parent1/parent2/repo.git
Don't know if this helps or not... Note that the use of .git at the end of repositories is pretty standard in the git world and is, as you say, what gitolite expects (and what it creates automatically).