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 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git/objects/submodule/base.py') 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 -- cgit v1.2.3