def commit(self, id, path = ''):
        options = {'max_count': 1}

        commits = Commit.find_all(self, id, path, **options)

        if not commits:
            raise ValueError, "Invalid identifier %s, or given path '%s' too restrictive" % ( id, path )
        return commits[0]
Executes an :class:`.Action`.
dataset/ETHPy150Open kergoth/git-origin/git-python/lib/git/repo.py/Repo.commit--crossover with--dataset/ETHPy150Open los-cocos/cocos/cocos/cocosnode.py/CocosNode.do