我刚从使用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"
我无法弄清楚邮件列表的设置位置。我有什么想法得到这个警告吗?
答案 0 :(得分:0)
尝试进入由gitolite管理的裸回购之一并进行
git config -l
这将列出three git config files (local, global and system)中所有the right order中的所有配置。
然后您可以在正确的配置文件中unset the extra config(例如,在this question中)。
git config --system (or --global or --local) --unset hooks.announcelist
git config --system (or --global or --local) --unset-all hooks.announcelist