How to add description for a repository in Gitolite configuration

ε祈祈猫儿з 提交于 2019-12-04 12:50:10

I am happy to say its fixed now. I added this https://github.com/sitaramc/gitolite/blob/master/src/triggers/post-compile/update-description-file script in gitolite post_compile section.

1.Open the .gitolite.rc file in HOME directory and edit post_compile section.

    POST_COMPILE                =>
    [
        'post-compile/ssh-authkeys',
        'post-compile/update-git-configs',
        'post-compile/update-gitweb-access-list',
        'post-compile/update-git-daemon-access-list',
        'post-compile/update-description-file',
    ],

2.Then add description for repo in gitolite.conf. Please refer the below

repo    testing
RW+     =   @all
desc = "GIT testing"

3.Then commit and push your changes.

Now the description is automatically created. My new conf file here http://pastebin.com/c8Ggfbdi or http://arulraj.net/gitolite.conf.new .

schnell18

As of gitolite 3.5, you don't have to put the POST_COMPILE stuff. Just as enable the "cgit" option with ENABLE => [ 'cgit' ]. And you run the gitolite setup, then the .git/description files will be created with value from gitweb.description option.

Pierre de LESPINAY

From adding a description to repos you created

ssh git@host desc -h

Watch out the WRITER_CAN_UPDATE_DESC setting to avoid the "FATAL: you are not authorized" error.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!