From d5e763ea76d28cab14e16a4bc23572986fbf1797 Mon Sep 17 00:00:00 2001 From: "Wenhan Zhu (Cosmos)" Date: Tue, 5 Sep 2023 19:30:17 -0400 Subject: [PATCH] Fix 'Tree' object has no attribute '_name' when submodule path is normal path --- git/objects/submodule/base.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/git/objects/submodule/base.py b/git/objects/submodule/base.py index 7db64d705..0d20305c6 100644 --- a/git/objects/submodule/base.py +++ b/git/objects/submodule/base.py @@ -1402,6 +1402,10 @@ def iter_items( # END handle keyerror # END handle critical error + # Make sure we are looking at a submodule object + if type(sm) != git.objects.submodule.base.Submodule: + continue + # fill in remaining info - saves time as it doesn't have to be parsed again sm._name = n if pc != repo.commit(): pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy