diff options
Diffstat (limited to 'git/objects/submodule/base.py')
| -rw-r--r-- | git/objects/submodule/base.py | 12 | 
1 files changed, 0 insertions, 12 deletions
diff --git a/git/objects/submodule/base.py b/git/objects/submodule/base.py index 4b2fc0c0..ebb66495 100644 --- a/git/objects/submodule/base.py +++ b/git/objects/submodule/base.py @@ -411,21 +411,9 @@ class Submodule(util.IndexObject, Iterable, Traversable):          del(writer)          # we deliberatly assume that our head matches our index ! - -        try: -            repo.head.commit -            parent_repo_is_empty = False -        except ValueError: -            parent_repo_is_empty = True -            # Can't set this yet, if the parent repo is empty. -        # end          sm.binsha = mrepo.head.commit.binsha          index.add([sm], write=True) -        if parent_repo_is_empty: -            log.debug("Will not set _parent_commit now as the parent repository has no commit yet.") -        # end -          return sm      def update(self, recursive=False, init=True, to_latest_revision=False, progress=None, dry_run=False,  | 
