commit 387c45f4c7dcbeea29112789e8c87b5bd973ce37 from: Stefan Sperling date: Wed Sep 18 15:26:53 2024 UTC fix None-deref commit - 11d49a78db785e502777cd2273407d1902b3ee01 commit + 387c45f4c7dcbeea29112789e8c87b5bd973ce37 blob - 91f10ecb4e51bcd46d60a900c648ee90ea643aba blob + 83e9e758949ae582b359469d41573bd1b3f44205 --- swh/loader/git/loader.py +++ swh/loader/git/loader.py @@ -749,7 +749,9 @@ class GitLoader(BaseGitLoader): ref_object_hex = tagged_object_hex # TODO: Allow tags pointing at blobs or trees? - if obj is None or obj.type_name != b"commit": + if obj is None: + continue + if obj.type_name != b"commit": logger.debug( f" tag {ref_name} resolves to a {obj.type_name}, not a commit" )