Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9696112
D8794.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
931 B
Subscribers
None
D8794.diff
View Options
diff --git a/swh/loader/git/converters.py b/swh/loader/git/converters.py
--- a/swh/loader/git/converters.py
+++ b/swh/loader/git/converters.py
@@ -185,6 +185,7 @@
author_timezone = None
committer_timezone = None
+ assert commit._chunked_text is not None # to keep mypy happy
for (field, value) in _parse_message(commit._chunked_text):
if field == b"author":
m = AUTHORSHIP_LINE_RE.match(value)
diff --git a/swh/loader/git/dumb.py b/swh/loader/git/dumb.py
--- a/swh/loader/git/dumb.py
+++ b/swh/loader/git/dumb.py
@@ -86,7 +86,7 @@
commit_objects = []
for ref in wants:
ref_object = self._get_git_object(ref)
- if ref_object.get_type() == Commit.type_num:
+ if ref_object.type_num == Commit.type_num:
commit_objects.append(cast(Commit, ref_object))
self.objects[b"commit"].add(ref)
else:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Aug 17, 6:56 PM (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3226122
Attached To
D8794: converters, dumb: Fix errors since latest dulwich release (0.20.50)
Event Timeline
Log In to Comment