如何在Gitolite配置中为存储库添加描述 [英] How to add description for a repository in Gitolite configuration

查看:107
本文介绍了如何在Gitolite配置中为存储库添加描述的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为我的GIT服务器使用gitolite进行用户维护。一切工作正常,除了回购说明。我已经在gitolite.conf中为repo设置了描述,例如reponame = repo description。早期版本(在v3.x之前)其工作。现在它不工作。为了您的信息,我正在使用




  • gitolite v3.1

  • GIT v1.7.1

  • Perl v5.10.1



这是我的gitolite.conf文件 http://pastebin.com/DYCK3uRL http://arulraj.net/gitolite.conf 。由于该回购描述文件不是使用gitolite自动生成的,因此邮件接收邮件主题和签名没有描述。如何解决此问题?

解决方案

现在我很高兴地说它是固定的。我添加了这个 https:// github。 com / sitaramc / gitolite / blob / master / src / triggers / post-compile / update-description-file 脚本在gitolite post_compile部分。打开HOME目录下的 .gitolite.rc 文件并编辑post_compile部分。

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

2.然后在gitolite.conf中为repo添加描述。请参考下文

 回购测试
RW + = @all
desc =GIT测试

3.然后提交并推送您的更改。

现在描述是自动创建的。我的新conf文件 http://pastebin.com/c8Ggfbdi http://arulraj.net/gitolite.conf.new

I am using gitolite for user maintenance for my GIT server. Everything works fine except repo description. I have setup the description for a repo like "reponame = repo description" in gitolite.conf. Earlier version (before v3.x) its working. Now its not working. For your information I am using

  • gitolite v3.1
  • GIT v1.7.1
  • Perl v5.10.1

Here is my gitolite.conf file http://pastebin.com/DYCK3uRL or http://arulraj.net/gitolite.conf. The post-receive-email mail subject and signature not have description because of that repo description file not generated automatically using gitolite. How can I fix this..?

解决方案

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 .

这篇关于如何在Gitolite配置中为存储库添加描述的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆