alex / alex/pyvcs

'Repo' object has no attribute 'commit'

Offen
#20 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
128
Forks
11
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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'

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.