Project

General

Profile

Git Integration

Added by Matthias Lohr almost 12 years ago

Hey,

i found multiple ways to integration git repositories with redmine and serve them over http:
# GIT
        RedirectMatch permanent ^/git(/)?$ /projects
        SetEnv GIT_PROJECT_ROOT /opt/redmine-data/git/
        SetEnv GIT_HTTP_EXPORT_ALL
        AliasMatch ^/git/(.*/objects/[0-9a-f]{2}/[0-9a-f]{38})$ /opt/redmine-data/git/$1
        AliasMatch ^/git/(.*/objects/pack/pack-[0-9a-f]{40}.(pack|idx))$ /opt-redmine-data/git/$1
        ScriptAlias /git/ /usr/lib/git-core/git-http-backend/
        <Location /git>
                #DAV on

                AuthType Basic
                Require valid-user
                AuthName "git repositories" 

                PerlAccessHandler Apache::Authn::Redmine::access_handler
                PerlAuthenHandler Apache::Authn::Redmine::authen_handler
                RedmineDSN "DBI:Pg:dbname=redmine;host=localhost" 
                RedmineDbUser "redmine" 
                RedmineDbPass "123456" 
        </Location>

Which is the best one?

Best regards
Matthias Lohr