From: Thomas Glanzmann <thomas@glanzmann.de>
To: Jeff King <peff@peff.net>
Cc: GIT <git@vger.kernel.org>
Subject: Re: Update a bare repository
Date: Tue, 17 Jul 2007 09:41:12 +0200 [thread overview]
Message-ID: <20070717074112.GH5823@cip.informatik.uni-erlangen.de> (raw)
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
prev parent reply other threads:[~2007-07-17 7:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-17 6:30 Update a bare repository Thomas Glanzmann
2007-07-17 7:04 ` Jeff King
2007-07-17 7:26 ` Thomas Glanzmann
2007-07-17 7:31 ` Jeff King
2007-07-17 7:41 ` Thomas Glanzmann [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070717074112.GH5823@cip.informatik.uni-erlangen.de \
--to=thomas@glanzmann.de \
--cc=git@vger.kernel.org \
--cc=peff@peff.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).