{"thread":{"id":"9925","subject":"[PATCH] Fixed update-hook example allow-users format.","startedAt":"2007-09-18T12:26:09Z","lastAt":"2007-09-18T12:26:09Z","messageCount":1,"participants":["Väinö Järvelä"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"53463","messageId":"1190118369327-git-send-email-v@pp.inet.fi","threadId":"9925","inReplyTo":null,"subject":"[PATCH] Fixed update-hook example allow-users format.","fromName":"Väinö Järvelä","fromEmail":"v@pp.inet.fi","sentAt":"2007-09-18T12:26:09Z","receivedAt":"2007-09-18T12:26:09Z","isPatch":true,"sender":{"key":"v@pp.inet.fi","avatar":null},"body":"The example provided with the update-hook-example does not work on\neither bash 2.05b.0(1)-release nor 3.1.17(1)-release. The matcher did\nnot match the lines that it advertised to match, such as:\n\nrefs/heads/bw/        linus\nrefs/heads/tmp/*      *\n\nIn POSIX 1003.2 regular expressions, the star (*), is not an wildcard\nmeaning \"match everything\", it matches 0 or more matches of the atom\npreceding it.\n\nSo to match \"refs/heads/bw/topic-branch\", the matcher should be written\nas \"refs/heads/bw/.*\" to match \"refs/heads/bw/\" and everything after it.\n---\n Documentation/howto/update-hook-example.txt |    8 ++++----\n 1 files changed, 4 insertions(+), 4 deletions(-)\n\ndiff --git a/Documentation/howto/update-hook-example.txt b/Documentation/howto/update-hook-example.txt\nindex 3a33696..88765b5 100644\n--- a/Documentation/howto/update-hook-example.txt\n+++ b/Documentation/howto/update-hook-example.txt\n@@ -158,11 +158,11 @@ This uses two files, $GIT_DIR/info/allowed-users and\n allowed-groups, to describe which heads can be pushed into by\n whom.  The format of each file would look like this:\n \n-\trefs/heads/master\tjunio\n+        refs/heads/master\tjunio\n         refs/heads/cogito$\tpasky\n-\trefs/heads/bw/\t\tlinus\n-        refs/heads/tmp/\t\t*\n-        refs/tags/v[0-9]*\tjunio\n+        refs/heads/bw/.*\tlinus\n+        refs/heads/tmp/.*\t.*\n+        refs/tags/v[0-9].*\tjunio\n \n With this, Linus can push or create \"bw/penguin\" or \"bw/zebra\"\n or \"bw/panda\" branches, Pasky can do only \"cogito\", and JC can\n-- \n1.5.3.1.2.gd7c01\n"}]}