Re: Server-side preventing some files from being overwritten
- From
Jakub Narębski <jnareb@gmail.com>
- Date
- Jul 21, 2016, 11:21 UTC
- Message-ID
- <5790B055.4060603@gmail.com>
- In-Reply-To
- <CAGZ79kb=2rpYucjhavNB_XHLk9rjKSoHzL9bwM5buDO0GyW3vw@mail.gmail.com>
W dniu 2016-07-14 o 18:57, Stefan Beller pisze:
Show 7 quoted lines
> On Thu, Jul 14, 2016 at 8:31 AM, Thorsten Glaser <t.glaser@tarent.de> wrote: >> Hi *, >> >> is there a way, for example with some sort of pre-receive hook, >> to prevent some files from being overwritten by a push? > > pre-receive hooks are a thing!
Or you can use third-party tools with support for such cases, such as Gitolite. VREFs allow to restrict pushes by the filename, see http://gitolite.com/gitolite/vref.html#NAME (though I am not sure if it checks only the end state, or if it checks every commit that was pushed).
Best,
-- Jakub Narębski