How do I have to configure gitweb and gitolite so they'll work together?

后端 未结 3 753
自闭症患者
自闭症患者 2020-12-29 10:42

I am trying to make gitweb work with gitolite... but unsuccessful so far.
I am working on a RedHat Linux machine. A user called git exists.

gitolite

3条回答
  •  攒了一身酷
    2020-12-29 10:55

    I recently set up gitolite and gitweb and found that /etc/gitweb.conf required very little configuration. What you have looks right to me. What are the permissions like on /home/git/repositories? You may find they are too restrictive. Try this out:

    $ chmod -R 775 /home/git/repositories
    

    That's what solved the issue for me, (though I imagine there's a more secure way to set up the permissions). If that works, I'd recommend just having a look into giving Apache (or whatever user account gitweb is being executed under) more fine-grained permissions over the repositories directory.

    I also have this in my .gitolite.rc:

    GIT_CONFIG_KEYS => 'gitweb\.(owner|description|category)',
    

    so that the following works in /conf/gitolite.conf:

    config gitweb.owner         =   owner name
    config gitweb.description   =   some description
    config gitweb.category      =   some category
    

提交回复
热议问题