wildfish / git-hooks

A tool for organising your hooks
MIT License
2 stars 0 forks source link

Add arbitrary commands to the config #2

Open OmegaDroid opened 8 years ago

OmegaDroid commented 8 years ago

I would be useful to be able to run arbitrary commands on your repo that may not be general enough to make a public hook out of (such as ruining tests).

The working directory for the command should be the root of the repo.

Something like:

[run]
pre-commit = command: ./scripts/runtests.sh
    command: ./script/otherscript.sh