{"thread":{"id":"43565","subject":"following Documentation/howto/update-hook-example.txt","startedAt":"2006-11-19T23:10:45Z","lastAt":"2006-11-19T23:10:45Z","messageCount":1,"participants":["Nicolas Vilz"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"295567","messageId":"20061119231044.GA31562@hermes.lan.home.vilz.de","threadId":"43565","inReplyTo":null,"subject":"following Documentation/howto/update-hook-example.txt","fromName":"Nicolas Vilz","fromEmail":"niv@iaglans.de","sentAt":"2006-11-19T23:10:45Z","receivedAt":"2006-11-19T23:10:45Z","isPatch":false,"sender":{"key":"niv@iaglans.de","avatar":"https://gravatar.com/avatar/e4d43a32d721241212d4edb1d2210327e28423c913071b4bfeeaa0ce15296110?d=mp&s=160"},"body":"hello guys,\n\nI tested the script mentioned in update-hook-example.txt and noticed,\nthat the following line in allowed-users\n\nrefs/heads/tmp/         *\n\nand the if-clause above \n\nmatchlen=$(expr \"$1\" : \"$head_pattern\")\nif [ \"$matchlen\" == \"${#1}\" ]; then\n\ndoes not recognize the header\n\nrefs/heads/tmp/blah\n\n... so, all users trying to update or create branches named\ntmp/<insert_fancy_name_here> are denied, because nothing matches.\n\nalso the example case in which linus should be allowed to push and\ncreate branches bw/blah and bw/blupp doesn't work.\n\nIf I try following rule in allowed-users\n\nrefs/heads/tmp \t\t*\n\nand someone tries to commit refs/heads/tmp, it works as intended.\n\nThis is at least in bash 3.1.2.5 ... (i tested that on my powerbook this\nweek end). Perhaps it worked in November 2005. I don't know which\nversion of bash was the latest then.\n\nFor all other examples in this document, it grants and denies pushing\nand creating branches as intended.\n\nI haven't tried the tag-case yet.... could be, that this also doesn't\nwork anymore.\n\nGreetings\nNicolas\n"}]}