Can I make Cornerstone run make and cancel the commit if it fails?
-
28-10-2019 - |
Pergunta
I have a Makefile in my working copy. Can I make Cornerstone run make; make test
before a commit, and cancel the commit if make fails?
This way I'm sure I don't accidentally commit code that doesn't work.
Solução
Cornerstone 2.5.x supports pre-commit scripts, presumably you could attach a script that runs the make file to that.
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow