Add a :ignore_dry_run option to run_locally

`run_locally` will not run command `git ls-remote` actually with dry-run flag,
so that `query_revision` can not get the excpected result and cause
error.