summaryrefslogtreecommitdiff
path: root/git/objects/submodule/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/objects/submodule/base.py')
-rw-r--r--git/objects/submodule/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/objects/submodule/base.py b/git/objects/submodule/base.py
index 3e3eed78..1d05609d 100644
--- a/git/objects/submodule/base.py
+++ b/git/objects/submodule/base.py
@@ -636,7 +636,7 @@ class Submodule(util.IndexObject, Iterable, Traversable):
os.renames(cur_path, module_checkout_abspath)
renamed_module = True
- if self._need_gitfile_submodules(self.repo.git):
+ if os.path.isfile(os.path.join(module_checkout_abspath, '.git')):
module_abspath = self._module_abspath(self.repo, self.path, self.name)
self._write_git_file_and_module_config(module_checkout_abspath, module_abspath)
# end handle git file rewrite