|
|
|
|
|
by JoshTriplett
3917 days ago
|
|
git upstream has rejected that for security reasons; git clone should not produce a repository that runs arbitrary code on the user's system. However, it seems reasonable to have an explicit option to clone, such as --use-hooks, that allows repositories to enable their local hooks automatically. Apart from that, you could have a server-side hook that prevents any push containing such files. |
|