Skip to content

Commit 87ae425

Browse files
committed
Fixed bug, which was so obvious that I am wondering how none of the test ran into that, or at least triggered it
1 parent f631214 commit 87ae425

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎git/objects/submodule/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ def iter_items(cls, repo, parent_commit='HEAD'):
905905
# try the index, maybe it was just added
906906
try:
907907
entry = index.entries[index.entry_key(p, 0)]
908-
sm = cls(repo, entry.binsha, entry.mode, entry.path)
908+
sm = Submodule(repo, entry.binsha, entry.mode, entry.path)
909909
except KeyError:
910910
raise InvalidGitRepositoryError("Gitmodule path %r did not exist in revision of parent commit %s" % (p, parent_commit))
911911
# END handle keyerror

‎git/objects/submodule/root.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def update(self, previous_commit=None, recursive=True, force_remove=False, init=
109109

110110

111111
psms = self.list_items(repo, parent_commit=previous_commit)
112-
sms = self.list_items(self.module())
112+
sms = self.list_items(repo)
113113
spsms = set(psms)
114114
ssms = set(sms)
115115

0 commit comments

Comments
 (0)