def METHOD_NAME(self):
    if not os.path.exists(os.path.join(self.subdir,'.git')):
        self.Clone()
    self.AddRemote()
    if not self.HasCommit():
        self.Fetch()
    command_output(['git', 'checkout', self.commit], self.subdir)