fn resolve_commit_sha( git_dir: Option<&Path>, commit_ref: &str, ) -> Result<String, String>
Resolve the commit SHA of commit_ref.
commit_ref