summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2010-12-01 01:19:28 +0100
committerSebastian Thiel <byronimo@gmail.com>2010-12-01 01:19:28 +0100
commit87ae42528362d258a218b3818097fd2a4e1d6acf (patch)
tree21fbfe579f41a6a69361bd857fcdea82453b7fe0
parentf631214261a7769c8e6956a51f3d04ebc8ce8efd (diff)
downloadgitpython-87ae42528362d258a218b3818097fd2a4e1d6acf.tar.gz
Fixed bug, which was so obvious that I am wondering how none of the test ran into that, or at least triggered it
-rw-r--r--git/objects/submodule/base.py2
-rw-r--r--git/objects/submodule/root.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/git/objects/submodule/base.py b/git/objects/submodule/base.py
index fd6c9396..29b630ff 100644
--- a/git/objects/submodule/base.py
+++ b/git/objects/submodule/base.py
@@ -905,7 +905,7 @@ class Submodule(util.IndexObject, Iterable, Traversable):
# try the index, maybe it was just added
try:
entry = index.entries[index.entry_key(p, 0)]
- sm = cls(repo, entry.binsha, entry.mode, entry.path)
+ sm = Submodule(repo, entry.binsha, entry.mode, entry.path)
except KeyError:
raise InvalidGitRepositoryError("Gitmodule path %r did not exist in revision of parent commit %s" % (p, parent_commit))
# END handle keyerror
diff --git a/git/objects/submodule/root.py b/git/objects/submodule/root.py
index 36cd7209..132604f6 100644
--- a/git/objects/submodule/root.py
+++ b/git/objects/submodule/root.py
@@ -109,7 +109,7 @@ class RootModule(Submodule):
psms = self.list_items(repo, parent_commit=previous_commit)
- sms = self.list_items(self.module())
+ sms = self.list_items(repo)
spsms = set(psms)
ssms = set(sms)