I'm trying to figure out how to write a pre-commit hook for Git
that checks the status of my Hudson
build. If the previous build failed, it should disallow anyone from committing without first writing a specific line, e.g. "fixed build."
EDIT:
The first answerer has provided one side of the coin: the Hudson API.
I now need the other side. How do I write the pre-commit hook in Git
?