git & smart-http

# nano /etc/httpd/conf.d/git.conf

SetEnv GIT_PROJECT_ROOT /srv/git
SetEnv GIT_HTTP_EXPORT_ALL

ScriptAlias /git /usr/local/libexec/git-core/git-http-backend
 

   AuthType Basic
   AuthName "Git Area"
   AuthUserFile /srv/.htpasswd
   require valid-user
   Order allow,deny
   Allow from all

# mkdir -p /srv/git/myrepo/myrepo.git 
# cd /srv/git/myrepo/myrepo.git
# git --bare init --shared=true
# git update-server-info
# chown -R apache:apache /srv/git

usage

$ git clone http://example.com/git/myrepo/myrepo.git
$ touch newfile
$ git add newfile
$ git commit -m "init"
$ git push origin master

$ cd /tmp
$ git clone http://example.com/git/myrepo/myrepo.git

Redmine setting

Path string to Redmine

/srv/git/myrepo/myrepo.git