Git trigger

@smathieu could you review this please?
This is a very non-DRY way and brittle ay of testing this. You should have a custom matchers to test the exit code and error messages.