From 87ae42528362d258a218b3818097fd2a4e1d6acf Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Wed, 1 Dec 2010 01:19:28 +0100 Subject: Fixed bug, which was so obvious that I am wondering how none of the test ran into that, or at least triggered it --- git/objects/submodule/base.py | 2 +- git/objects/submodule/root.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'git/objects') 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) -- cgit v1.2.3