justinmassiot / svnhooks

Framework and example hook scripts for SVN (Subversion)
Apache License 2.0
1 stars 0 forks source link

Make hooks global #6

Open justinmassiot opened 4 years ago

justinmassiot commented 4 years ago

While idea #5 will be implemented, it will be possible to have all the scripts in one single place instead of copying the whole bunch of scripts to each repository. We may also take advantage of the recent hooks-env configuration variable.

### The hooks-env options specifies a path to the hook script environment 
### configuration file. This option overrides the per-repository default
### and can be used to configure the hook script environment for multiple 
### repositories in a single file, if an absolute path is specified.
### Unless you specify an absolute path, the file's location is relative
### to the directory containing this file.
hooks-env = hooks-env
justinmassiot commented 4 years ago

Making hooks global only applies if all repositories would enforce the exact same hooks, which is likely not the case.