You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/www-apps/blohg/files/use-recent-libgit2.patch

18 lines
724 B

diff --git a/blohg/vcs_backends/git/filectx.py b/blohg/vcs_backends/git/filectx.py
index 84f7aa3..5e20762 100644
--- a/blohg/vcs_backends/git/filectx.py
+++ b/blohg/vcs_backends/git/filectx.py
@@ -73,7 +73,11 @@ def _last_changeset(self):
GIT_SORT_TIME):
diff = self._repo.diff(head, commit)
for patch in diff:
- if patch.new_file_path == self._path:
+ try:
+ new_file_path = patch.delta.new_file.path
+ except AttributeError:
+ new_file_path = patch.new_file_path
+ if new_file_path == self._path:
return head
head = commit