adding support to check a branch or a commit direct

the test in Travis are failing, but the local tests runs //cc @rubiii