Use git log to validated git shallow clone test

Change git shallow clone tests to verify that `git log` results
in the expected depth of commits.