Dont throw error if a commit is not found locally.
Fix bug in getCommitGraph, getCommonAncestor.
Switch back to shallow clone.