FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

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

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

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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

Back | FazBrowse Home | New Git URL