diff options
Diffstat (limited to 'lib/git')
-rw-r--r-- | lib/git/objects/submodule/base.py | 12 | ||||
-rw-r--r-- | lib/git/objects/submodule/root.py | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/lib/git/objects/submodule/base.py b/lib/git/objects/submodule/base.py index 347af58e..b72eac82 100644 --- a/lib/git/objects/submodule/base.py +++ b/lib/git/objects/submodule/base.py @@ -261,12 +261,6 @@ class Submodule(util.IndexObject, Iterable, Traversable): # END handle path del(writer) - # NOTE: Have to write the repo config file as well, otherwise - # the default implementation will be offended and not update the repository - # Maybe this is a good way to assure it doesn't get into our way, but - # we want to stay backwards compatible too ... . Its so redundant ! - repo.config_writer().set_value(sm_section(sm.name), 'url', url) - # we deliberatly assume that our head matches our index ! pcommit = repo.head.commit sm._parent_commit = pcommit @@ -350,6 +344,12 @@ class Submodule(util.IndexObject, Iterable, Traversable): except IndexError: print >> sys.stderr, "Warning: Failed to checkout tracking branch %s" % self.branch #END handle tracking branch + + # NOTE: Have to write the repo config file as well, otherwise + # the default implementation will be offended and not update the repository + # Maybe this is a good way to assure it doesn't get into our way, but + # we want to stay backwards compatible too ... . Its so redundant ! + self.repo.config_writer().set_value(sm_section(self.name), 'url', self.url) #END handle initalization diff --git a/lib/git/objects/submodule/root.py b/lib/git/objects/submodule/root.py index 82b8b271..06649136 100644 --- a/lib/git/objects/submodule/root.py +++ b/lib/git/objects/submodule/root.py @@ -244,7 +244,7 @@ class RootModule(Submodule): ###################################### for sm in sms: # update the submodule using the default method - sm.update(recursive=True, init=init, to_latest_revision=to_latest_revision) + sm.update(recursive=False, init=init, to_latest_revision=to_latest_revision) # update recursively depth first - question is which inconsitent # state will be better in case it fails somewhere. Defective branch |