alex / alex/pyvcs

'Repo' object has no attribute 'commit'

Open
#20 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
128
Forks
11
PR merge metrics
No merged PRs in 30d

Description

I initialized the repo as repo = Repository('/opt/projectpath/')
repo.get_recent_commits() raises this. Am i missing something? (it is a git repo)
93 head = pending_commits.pop(0)
94 try:
---> 95 commit = self._repo.commit(head)
96 except KeyError:
97 raise CommitDoesNotExist

AttributeError: 'Repo' object has no attribute 'commit'

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.