git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Update a bare repository

From
TGThomas Glanzmann <thomas@glanzmann.de>
Date
Jul 17, 2007, 07:41 UTC
Message-ID
<20070717074112.GH5823@cip.informatik.uni-erlangen.de>
In-Reply-To
<20070717073115.GA14629@coredump.intra.peff.net>
Hello Peff,
> echo "echo Sorry, no pushing allowed.; exit 1" >.git/hooks/pre-receive
> chmod +x .git/hooks/pre-receive
thank you, that does exactly what I wanted:
	(faui03) [/var/tmp/git] git commit -a
	Created commit 9e89d1d: added some whitespace
	1 files changed, 1 insertions(+), 0 deletions(-)
	(faui03) [/var/tmp/git] git push origin
	updating 'refs/heads/master'
	from 9dfdf14b3805e89aa2782458bda15b3dfae24c09
	to   9e89d1d3890c6b0fd8546143a6e797820e274cb1
	Generating pack...
	Done counting 5 objects.
	Result has 3 objects.
	Deltifying 3 objects...
	100% (3/3) done
	Writing 3 objects...
	100% (3/3) done
	Total 3 (delta 2), reused 0 (delta 0)
	Sorry, no pushing allowed.
	error: hooks/pre-receive exited with error code 1
	ng refs/heads/master pre-receive hook declined
	error: failed to push to '131.188.30.103:/home/cip/adm/sithglan/work/repositories/mirror/git.git'
		Thomas
Previous: Jeff King
Message 5 of 5 in “Update a bare repository”
  1. Thomas GlanzmannJul 17, 2007
  2. Jeff KingJul 17, 2007
  3. Thomas GlanzmannJul 17, 2007
  4. Jeff KingJul 17, 2007
  5. Thomas GlanzmannJul 17, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.