Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 830025b

Browse filesBrowse 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
Copy full SHA for 830025b

File tree

1 file changed

+4
-0
lines changed
Filter options

1 file changed

+4
-0
lines changed

‎git/objects/submodule/base.py

Copy file name to clipboardExpand all lines: git/objects/submodule/base.py
+4Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.