Thread (5 messages) flat view 5 messages, 2 authors, 2016-06-15

Re: Update a bare repository

From: Jeff King <hidden>
Date: 2016-06-15 22:43:21

On Tue, Jul 17, 2007 at 09:26:35AM +0200, Thomas Glanzmann wrote:
quoted
The simplest thing is not to give write access to the repo for your
pushers. However, you could also put in a pre-receive hook that rejects
all pushes.
Is there an example somewhere?
Not that I know of, but it should be as simple as:

echo "echo Sorry, no pushing allowed.; exit 1" >.git/hooks/pre-receive
chmod +x .git/hooks/pre-receive

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help