From 48d0acfaa13b01fa5b9dd9d9ea42ffdfb7daf86d Mon Sep 17 00:00:00 2001 From: Renaud Boyer <renaud.boyer@sofwareheritage.org> Date: Tue, 10 Sep 2024 14:48:24 +0200 Subject: [PATCH] Fix Commit.extra is deprecated --- swh/loader/git/converters.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swh/loader/git/converters.py b/swh/loader/git/converters.py index bbd651c1..11ca1f4a 100644 --- a/swh/loader/git/converters.py +++ b/swh/loader/git/converters.py @@ -207,8 +207,8 @@ def dulwich_commit_to_revision(obj: ShaFile) -> Revision: assert raw_string.endswith(b"\n") extra_headers.append((b"mergetag", raw_string[:-1])) - if commit.extra: - extra_headers.extend((k, v) for k, v in commit.extra) + if commit._extra: + extra_headers.extend((k, v) for k, v in commit._extra) if commit.gpgsig: extra_headers.append((b"gpgsig", commit.gpgsig)) -- GitLab