diff options
| author | Sebastian Thiel <byronimo@gmail.com> | 2010-12-01 01:19:28 +0100 |
|---|---|---|
| committer | Sebastian Thiel <byronimo@gmail.com> | 2010-12-01 01:19:28 +0100 |
| commit | 87ae42528362d258a218b3818097fd2a4e1d6acf (patch) | |
| tree | 21fbfe579f41a6a69361bd857fcdea82453b7fe0 /git/objects/submodule/base.py | |
| parent | f631214261a7769c8e6956a51f3d04ebc8ce8efd (diff) | |
| download | GitPython-87ae42528362d258a218b3818097fd2a4e1d6acf.tar.gz GitPython-87ae42528362d258a218b3818097fd2a4e1d6acf.zip | |
Fixed bug, which was so obvious that I am wondering how none of the test ran into that, or at least triggered it
Diffstat (limited to 'git/objects/submodule/base.py')
| -rw-r--r-- | git/objects/submodule/base.py | 2 |
1 files changed, 1 insertions, 1 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 |
