The example provided with the update-hook-example does not work on
either bash 2.05b.0(1)-release nor 3.1.17(1)-release. The matcher did
not match the lines that it advertised to match, such as:
refs/heads/bw/ linus
refs/heads/tmp/* *
In POSIX 1003.2 regular expressions, the star (*), is not an wildcard
meaning "match everything", it matches 0 or more matches of the atom
preceding it.
So to match "refs/heads/bw/topic-branch", the matcher should be written
as "refs/heads/bw/.*" to match "refs/heads/bw/" and everything after it.
---
Documentation/howto/update-hook-example.txt | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Documentation/howto/update-hook-example.txt b/Documentation/howto/update-hook-example.txt
index 3a33696..88765b5 100644
--- a/Documentation/howto/update-hook-example.txt
+++ b/Documentation/howto/update-hook-example.txt
@@ -158,11 +158,11 @@ This uses two files, $GIT_DIR/info/allowed-users and
allowed-groups, to describe which heads can be pushed into by
whom. The format of each file would look like this:
- refs/heads/master junio
+ refs/heads/master junio
refs/heads/cogito$ pasky
- refs/heads/bw/ linus
- refs/heads/tmp/ *
- refs/tags/v[0-9]* junio
+ refs/heads/bw/.* linus
+ refs/heads/tmp/.* .*
+ refs/tags/v[0-9].* junio
With this, Linus can push or create "bw/penguin" or "bw/zebra"
or "bw/panda" branches, Pasky can do only "cogito", and JC can
--
1.5.3.1.2.gd7c01
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
| Dmitry Torokhov | 2.6.27-rc8+ - first impressions |
| Greg KH | [patch 00/28] 2.6.25-stable review |
| Linus Torvalds | Linux 2.6.27-rc8 |
| Jan Kundrát | kswapd high CPU usage with no swap |
git: | |
| Ken Pratt | pack operation is thrashing my server |
| ir0s | Local branch ahead of tracked remote branch but git push claims everything up-to-d... |
| Wink Saville | Resolving conflicts |
| Olivier Marin | [PATCH] builtin-rerere: fix conflict markers parsing |
| Samuel Moñux | Cyrus IMAP performance problems [Long] |
| Richard Stallman | Real men don't attack straw men |
| Didier Wiroth | how can I "find xyz | xargs tar" ... like gtar |
| GVG GVG | ssh_exchange_identification: Connection closed by remote host |
| Volker Armin Hemmann | build error with 2.6.27.6+reiser4+ehci-hub patch. ERROR: "mii_ethtool_gset" [drive... |
| Frithjof Hammer | Re: [LARTC] ifb and ppp |
| David Miller | [GIT]: Networking |
| David Madore | atl1e Ethernet driver not seeing packets sent to 33:33:00:00:00:01 multicast |
| Block Sub System query | 2 hours ago | Linux kernel |
| kernel module to intercept socket creation | 3 hours ago | Linux kernel |
| Image size changing during each build | 3 hours ago | Linux kernel |
| Soft lock bug | 8 hours ago | Linux kernel |
| sysctl - dynamic registration problem | 15 hours ago | Linux kernel |
| Question on swap as ramdisk partition | 17 hours ago | Linux kernel |
| serial driver xmit problem | 22 hours ago | Linux kernel |
| Generic Netlink subsytem | 22 hours ago | Linux kernel |
| 'Report spam filter error' page broken | 1 day ago | KernelTrap Suggestions and Feedback |
| Netfilter kernel module | 1 day ago | Linux kernel |
