fix up git check

* fix for when the only commit is initial commit
* refactor to use rev-list instead of parsing log
* remove --depth 10; problematic when ref is 10+ commits ago