Content-Length: 961 | pFad | http://github.com/gitpython-developers/GitPython/pull/1645.patch
thub.com
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():
--- a PPN by Garber Painting Akron. With Image Size Reduction included!Fetched URL: http://github.com/gitpython-developers/GitPython/pull/1645.patch
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy