Skip to content

Commit ddf59b7

Browse files
committed
pkgdev commit: drop historical repo fallback
If there are issues creating the historical repo, we'd rather it fail loudly so the bug is more likely to be noticed and fixed.
1 parent d16486e commit ddf59b7

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

src/pkgdev/scripts/pkgdev_commit.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,6 @@ def __init__(self, options, changes):
224224
@change('M')
225225
def modify(self):
226226
"""Generate summaries for modify actions."""
227-
if self.old_repo is None:
228-
# error initializing historical repo
229-
return
230-
231227
atom = next(iter(self.changes))
232228
self.old_repo.add_pkgs([atom])
233229
try:
@@ -335,10 +331,6 @@ def rename(self):
335331
def modify(self):
336332
"""Generate summaries for modify actions."""
337333
if len(self.changes) == 1:
338-
if self.old_repo is None:
339-
# error initializing historical repo
340-
return
341-
342334
atom = next(iter(self.changes))
343335
self.old_repo.add_pkgs([atom])
344336
try:

0 commit comments

Comments
 (0)