Ensure only new commits are submitted as builds

When new pushes are specified through the hook interface, we should only build commits which have not yet been built.