@@ -378,7 +378,7 @@ def test_root_module(self, rwrepo):
378378 assert not sm .module_exists () # was never updated after rwrepo's clone
379379
380380 # assure we clone from a local source
381- sm .config_writer ().set_value ('url' , join_path_native (self .rorepo .working_tree_dir , sm .path ))
381+ sm .config_writer ().set_value ('url' , to_native_path_linux ( join_path_native (self .rorepo .working_tree_dir , sm .path ) ))
382382 sm .update (recursive = False )
383383 assert sm .module_exists ()
384384 sm .config_writer ().set_value ('path' , fp ) # change path to something with prefix AFTER url change
@@ -406,7 +406,7 @@ def test_root_module(self, rwrepo):
406406 #================
407407 nsmn = "newsubmodule"
408408 nsmp = "submrepo"
409- async_url = join_path_native (self .rorepo .working_tree_dir , rsms [0 ].path , rsms [1 ].path )
409+ async_url = to_native_path_linux ( join_path_native (self .rorepo .working_tree_dir , rsms [0 ].path , rsms [1 ].path ) )
410410 nsm = Submodule .add (rwrepo , nsmn , nsmp , url = async_url )
411411 csmadded = rwrepo .index .commit ("Added submodule" )
412412 nsm .set_parent_commit (csmadded )
@@ -439,7 +439,7 @@ def test_root_module(self, rwrepo):
439439 # to the first repository, this way we have a fast checkout, and a completely different
440440 # repository at the different url
441441 nsm .set_parent_commit (csmremoved )
442- nsmurl = join_path_native (self .rorepo .working_tree_dir , rsms [0 ].path )
442+ nsmurl = to_native_path_linux ( join_path_native (self .rorepo .working_tree_dir , rsms [0 ].path ) )
443443 nsm .config_writer ().set_value ('url' , nsmurl )
444444 csmpathchange = rwrepo .index .commit ("changed url" )
445445 nsm .set_parent_commit (csmpathchange )
0 commit comments