Add `--repo` option to testing.

Allows the specification of the git repo location so the licence header checks can be run.