Content-Length: 262744 | pFad | http://github.com/gitpython-developers/GitPython/commit/830025bbfabc079ff803491920c2453dee4ce24f

E0 Merge pull request #1645 from CosmosAtlas/main · gitpython-developers/GitPython@830025b · GitHub
Skip to content

Commit 830025b

Browse files
authored
Merge pull request #1645 from CosmosAtlas/main
Fix 'Tree' object has no attribute '_name' when submodule path is normal path
2 parents 91b464c + d5e763e commit 830025b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

git/objects/submodule/base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1402,6 +1402,10 @@ def iter_items(
14021402
# END handle keyerror
14031403
# END handle critical error
14041404

1405+
# Make sure we are looking at a submodule object
1406+
if type(sm) != git.objects.submodule.base.Submodule:
1407+
continue
1408+
14051409
# fill in remaining info - saves time as it doesn't have to be parsed again
14061410
sm._name = n
14071411
if pc != repo.commit():

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/gitpython-developers/GitPython/commit/830025bbfabc079ff803491920c2453dee4ce24f

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy