Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git push remote: warning: hooks.mailinglist has multiple values

Tags:

git

gitolite

hook

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
$

In the gitolite.conf file I have

repo gitolite-admin
RW+ = @gitadmin
config hooks.mailinglist = "[email protected]"
congig hooks.announcelist = "[email protected]"
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?

like image 282
Scot Wilkie Avatar asked Aug 23 '26 15:08

Scot Wilkie


1 Answers

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

git config -l

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
like image 157
VonC Avatar answered Aug 26 '26 23:08

VonC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!