summaryrefslogtreecommitdiff
path: root/git/objects/submodule/base.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2015-01-19 13:52:54 +0100
committerSebastian Thiel <byronimo@gmail.com>2015-01-19 13:55:38 +0100
commita223c7b7730c53c3fa1e4c019bd3daefbb8fd74b (patch)
treeafcff338ce9506ffad3f4738b9bb2aefab14c2f6 /git/objects/submodule/base.py
parentd4ce247c0380e3806e47b5b3e2b66c29c3ab2680 (diff)
downloadgitpython-a223c7b7730c53c3fa1e4c019bd3daefbb8fd74b.tar.gz
Submodule.move() fixed to deal with 'non-gitfile' clones appropriately.
Improved a test to assure multiple update(init=False|True) calls don't throw. Fixes #93
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