From 18d8cb561c6c3e2ab5908cc555afeb0137211a3d Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 26 Dec 2019 09:30:45 +1000 Subject: [PATCH] add note about pre-push --- README.contributing | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.contributing b/README.contributing index 545735067..d21eac182 100644 --- a/README.contributing +++ b/README.contributing @@ -69,6 +69,12 @@ Tests Must Pass ---------------- Please make sure 'make check' completes successfully before submitting code. +You can do this automatically by adding the following into .git/hooks/pre-push +and making it executable. + +#!/bin/bash +set -e +make check If your change is to anki/ and not covered by the existing unit tests, please consider adding a unit test at the same time.