diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2010-11-20 18:33:43 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2010-11-20 20:17:32 +0100 |
commit | 8f24f9540afc0db61d197bc4932697737bff1506 (patch) | |
tree | cccf958a2c1a0907869342ca872ff17b44e7e9bb /test/git/test_submodule.py | |
parent | 8e0e315a371cdfc80993a1532f938d56ed7acee4 (diff) | |
download | gitpython-8f24f9540afc0db61d197bc4932697737bff1506.tar.gz |
Submodule: Assured we properly convert paths to using the slash separator
Diffstat (limited to 'test/git/test_submodule.py')
-rw-r--r-- | test/git/test_submodule.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/git/test_submodule.py b/test/git/test_submodule.py index 2ef45862..7b774285 100644 --- a/test/git/test_submodule.py +++ b/test/git/test_submodule.py @@ -378,7 +378,7 @@ class TestSubmodule(TestBase): assert not sm.module_exists() # was never updated after rwrepo's clone # assure we clone from a local source - sm.config_writer().set_value('url', join_path_native(self.rorepo.working_tree_dir, sm.path)) + sm.config_writer().set_value('url', to_native_path_linux(join_path_native(self.rorepo.working_tree_dir, sm.path))) sm.update(recursive=False) assert sm.module_exists() sm.config_writer().set_value('path', fp) # change path to something with prefix AFTER url change @@ -406,7 +406,7 @@ class TestSubmodule(TestBase): #================ nsmn = "newsubmodule" nsmp = "submrepo" - async_url = join_path_native(self.rorepo.working_tree_dir, rsms[0].path, rsms[1].path) + async_url = to_native_path_linux(join_path_native(self.rorepo.working_tree_dir, rsms[0].path, rsms[1].path)) nsm = Submodule.add(rwrepo, nsmn, nsmp, url=async_url) csmadded = rwrepo.index.commit("Added submodule") nsm.set_parent_commit(csmadded) @@ -439,7 +439,7 @@ class TestSubmodule(TestBase): # to the first repository, this way we have a fast checkout, and a completely different # repository at the different url nsm.set_parent_commit(csmremoved) - nsmurl = join_path_native(self.rorepo.working_tree_dir, rsms[0].path) + nsmurl = to_native_path_linux(join_path_native(self.rorepo.working_tree_dir, rsms[0].path)) nsm.config_writer().set_value('url', nsmurl) csmpathchange = rwrepo.index.commit("changed url") nsm.set_parent_commit(csmpathchange) |