Discussion:
How to change the config of repo which is created by GitLab?
刘磊
2014-04-24 07:44:14 UTC
Permalink
We want to setting some config to the repo like 'receive.denynonfastforwards=true'
and 'receive.denydeletes=true'.
--
You received this message because you are subscribed to the Google Groups "GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gitlabhq+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
Seb D
2016-06-27 14:03:12 UTC
Permalink
It's probably too late to answer this, but since I was looking for the
answer too here it is:
You can set system (and probaly also global) config in /etc/gitlab/gitlab.rb

You should find the following section:
#######
# Git #
#######
## Advanced setting for configuring git system settings for omnibus-gitlab
internal git
## For multiple options under one header use array of comma separated
values, eg.
## { "receive" => ["fsckObjects = true"], "alias" => ["st = status", "co =
checkout"] }

# omnibus_gitconfig['system'] = { "receive" => ["fsckObjects = true"] }
Not the hook, just config which can setup during the init.
圚 2014幎5月5日星期䞀UTC+8䞋午7时15分18秒Sytse Sijbrandij写道
Looks like you need the Git Hooks that are in GitLab EE.
Post by 刘磊
We want to setting some config to the repo like
'receive.denynonfastforwards=true' and 'receive.denydeletes=true'.
--
You received this message because you are subscribed to the Google
Groups
Post by 刘磊
"GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send
an
Post by 刘磊
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gitlabhq+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gitlabhq/224df410-ef5d-4883-a01c-0c7d33ce6441%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...