I think such hooks could be allowed only if triggered explicitly by the
upload-pack caller, such as git-daemon. That's probably the only
scenario where a useful use case can be justified for them anyway.
And of course, to avoid any security problems, the actual hooks must not
be provided by the repository owner but provided externally, like from
git-daemon, via some upload-pack command line arguments. This way the
hooks are really controlled by the system administrator managing
git-daemon and not by any random git repository owner.
That should be good enough for all the use cases those hooks were
originally designed for.
Nicolas
--
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