From: Ian Campbell <ian.campbell@citrix.com>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: xen-devel@lists.xen.org, wei.liu2@citrix.com,
stefano.stabellini@eu.citrix.com
Subject: Re: [PATCH OSSTEST] Switch to merged qemu-xen{, -traditional}.git trees
Date: Wed, 21 Oct 2015 11:50:46 +0100 [thread overview]
Message-ID: <1445424646.9563.86.camel@citrix.com> (raw)
In-Reply-To: <22055.27242.824758.788120@mariner.uk.xensource.com>
On Wed, 2015-10-21 at 11:35 +0100, Ian Jackson wrote:
> Ian Campbell writes ("Re: [Xen-devel] [PATCH OSSTEST] Switch to merged
> qemu-xen{, -traditional}.git trees"):
> > On Tue, 2015-10-20 at 11:34 +0100, Ian Campbell wrote:
> > > * See if there is a way to prevent pushes to the old trees (e.g. a
> > > setting in their .git/config file).
> >
> > It appears that it is trivial to block force pushes or pushes to the
> > current branch (which I think might be meaningless for a bare repo) but
> > that blocking all pushes involves using .git/hooks. I think this is
> > probably too much faff, or at least not worth putting on the critical
> > path.
>
> These hooks aren't too hard to write. See
> xenbits:~xen/git/xen.git/hooks/pre-receive
> for an example.
In this case it looks then like:
#!/bin/sh
set -e
echo >&2 "Pushes are not allowed to this tree"
exit 1
is all that is needed.
Ian.
next prev parent reply other threads:[~2015-10-21 10:50 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-17 9:37 [PATCH OSSTEST+XEN 0/1+1] Switching to one qemu tree per qemu version (trad vs upstream) Ian Campbell
2015-09-17 9:37 ` [PATCH OSSTEST] Switch to merged qemu-xen{, -traditional}.git trees Ian Campbell
2015-09-17 10:31 ` Ian Jackson
2015-09-17 10:43 ` Ian Campbell
2015-09-17 10:47 ` Ian Campbell
2015-10-02 13:43 ` Ian Jackson
2015-10-02 13:53 ` Ian Campbell
2015-10-05 16:39 ` Ian Jackson
2015-10-19 11:44 ` Ian Jackson
2015-10-20 10:34 ` Ian Campbell
2015-10-21 10:16 ` Ian Campbell
2015-10-21 10:35 ` Ian Jackson
2015-10-21 10:50 ` Ian Campbell [this message]
2015-10-21 11:07 ` Ian Campbell
2015-10-21 13:15 ` Ian Campbell
2015-10-21 13:25 ` Ian Campbell
2015-10-21 14:12 ` Ian Campbell
2015-10-21 14:23 ` Ian Campbell
2015-10-29 15:24 ` Ian Jackson
2015-09-17 9:37 ` [PATCH XEN] Config: Switch to unified qemu trees Ian Campbell
2015-09-17 10:32 ` Ian Jackson
2015-09-17 10:41 ` Ian Campbell
2015-10-16 11:34 ` Ian Jackson
2015-10-21 13:18 ` Ian Campbell
2015-09-17 10:23 ` [PATCH OSSTEST+XEN 0/1+1] Switching to one qemu tree per qemu version (trad vs upstream) Ian Jackson
2015-09-17 10:36 ` Ian Campbell
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=1445424646.9563.86.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xen.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.