3

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 = "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?

1 Answers1

1

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
Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • Only a single hooks.announcelist and hooks.emailinglist is shown. – Scot Wilkie May 23 '13 at 16:18
  • @ScotWilkie can you do the `config -l` from within the `gitolite-admin` repo itself? I realise the issue should come from the config of thet repo, and not of the ones managed by gitolite. – VonC May 23 '13 at 16:54
  • yes I got into the bare gitolite-admin repo on our git server and ran `git config -l`. Only a single hooks.emailinglist was listed. There is also a user.email which is set the gitadmin user email address. But I believe this is the senders email address, not the recipients. – Scot Wilkie May 23 '13 at 18:21