def is_commit_id_equal(self, dest, name):
if not name:<EOL><INDENT>return False<EOL><DEDENT>return self.get_revision(dest) == name<EOL>
Return whether the current commit hash equals the given name.

Args:
  dest: the repository directory.
  name: a string name.