githooks.txt: amend dangerous advice about 'update' hook ACL
[gitweb.git] / Documentation / githooks.txt
index 0d94337a5b7162c1827ab0627a7f8f0042e126a2..0dd618af8018ced26812f692df4a114745acc994 100644 (file)
@@ -274,9 +274,11 @@ does not know the entire set of branches, so it would end up
 firing one e-mail per ref when used naively, though.  The
 <<post-receive,'post-receive'>> hook is more suited to that.
 
-Another use suggested on the mailing list is to use this hook to
-implement access control which is finer grained than the one
-based on filesystem group.
+In an environment that restricts the users' access only to git
+commands over the wire, this hook can be used to implement access
+control without relying on filesystem ownership and group
+membership. See linkgit:git-shell[1] for how you might use the login
+shell to restrict the user's access to only git commands.
 
 Both standard output and standard error output are forwarded to
 'git send-pack' on the other end, so you can simply `echo` messages