git push remote:警告:hooks.mailinglist有多个值 [英] git push remote: warning: hooks.mailinglist has multiple values

查看:816
本文介绍了git push remote:警告:hooks.mailinglist有多个值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚从使用gitosis升级到gitolite。电子邮件通知正在为所有回购工作,但为gitolite管理员回购协议当我推(推送是好的)时,我得到这个waring:

I have just upgraded from using gitosis to gitolite. Email notifications are working for all repos but for the gitolite-admin repo I get this waring when I push (the push is good):

$ 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文件中,我有

In the gitolite.conf file I have

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"

我一直无法弄清楚邮件列表的设置。任何想法,为什么我得到这个警告?

I have not been able to figure out where else mailinglist is set. Any ideas why I am getting this warning?

推荐答案

尝试并在gitolite管理的裸回购之一,并做一个

Try and go within one of the bare repos managed by gitolite and do a

git config -l

这将列出所有三个git配置文件(本地,全局和系统)中的所有配置, 正确的顺序

That will list all configs in all three git config files (local, global and system), in the right order.

然后你可以在正确的配置文件中设置额外的配置(例如,在)。

You can then unset the extra config in the right config file (as, for instance, in this question).

git config --system (or --global or --local) --unset hooks.announcelist
git config --system (or --global or --local) --unset-all hooks.announcelist

这篇关于git push remote:警告:hooks.mailinglist有多个值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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