我刚刚从使用 gitosis 升级到 gitolite。电子邮件通知适用于所有存储库,但对于 gitolite-admin 存储库,我在推送时会收到这种警告(推送很好):
$ git push
remote: warning: hooks.announcelist has multiple values
remote: error: cannot overwrite multiple values with a single value
remote: Use a regexp, --add or --set-all to change hooks.announcelist.
remote: warning: hooks.mailinglist has multiple values
remote: error: cannot overwrite multiple values with a single value
remote: Use a regexp, --add or --set-all to change hooks.mailinglist.
To git@myserver:gitolite-admin
5629bf0..98f3977 master -> master
$
在 gitolite.conf 文件中我有
repo gitolite-admin
RW+ = @gitadmin
config hooks.mailinglist = "me@foo.com"
congig hooks.announcelist = "me@ffo.com"
config hooks.emailprefix = "[gitolite repo pushed]"
desc = "gitolite repo"
我无法弄清楚邮件列表的其他设置位置。任何想法为什么我会收到此警告?