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)
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