check_syntax/check_style: make sure all pushed commits are checked, not just the last

Signed-off-by: Dave Simons <dave@inuits.eu>