@@ -704,7 +704,7 @@ def test_first_submodule(self, rwrepo):
704
704
sm = rwrepo .create_submodule (sm_name , sm_path , rwrepo .git_dir , no_checkout = True )
705
705
assert sm .exists () and sm .module_exists ()
706
706
rwrepo .index .commit ("Added submodule " + sm_name )
707
- # end for each submodule path to add
707
+ # END for each submodule path to add
708
708
709
709
self .assertRaises (ValueError , rwrepo .create_submodule , "fail" , osp .expanduser ("~" ))
710
710
self .assertRaises (
@@ -731,7 +731,7 @@ def test_add_empty_repo(self, rwdir):
731
731
url = empty_repo_dir ,
732
732
no_checkout = checkout_mode and True or False ,
733
733
)
734
- # end for each checkout mode
734
+ # END for each checkout mode
735
735
736
736
@with_rw_directory
737
737
@_patch_git_config ("protocol.file.allow" , "always" )
@@ -783,8 +783,8 @@ def test_git_submodules_and_add_sm_with_new_commit(self, rwdir):
783
783
for init in (False , True ):
784
784
sm .update (init = init )
785
785
sm2 .update (init = init )
786
- # end for each init state
787
- # end for each iteration
786
+ # END for each init state
787
+ # END for each iteration
788
788
789
789
sm .move (sm .path + "_moved" )
790
790
sm2 .move (sm2 .path + "_moved" )
@@ -839,7 +839,7 @@ def assert_exists(sm, value=True):
839
839
assert sm .exists () == value
840
840
assert sm .module_exists () == value
841
841
842
- # end
842
+ # END def assert_exists
843
843
844
844
# As git is backwards compatible itself, it would still recognize what we do here... unless we really
845
845
# muss it up. That's the only reason why the test is still here...
@@ -854,7 +854,7 @@ def assert_exists(sm, value=True):
854
854
assert osp .isfile (module_repo_path )
855
855
assert sm .module ().has_separate_working_tree ()
856
856
assert find_submodule_git_dir (module_repo_path ) is not None , "module pointed to by .git file must be valid"
857
- # end verify submodule 'style'
857
+ # END verify submodule 'style'
858
858
859
859
# Test move.
860
860
new_sm_path = join_path_native ("submodules" , "one" )
@@ -911,7 +911,7 @@ def assert_exists(sm, value=True):
911
911
sm .remove (dry_run = dry_run , force = True )
912
912
assert_exists (sm , value = dry_run )
913
913
assert osp .isdir (sm_module_path ) == dry_run
914
- # end for each dry-run mode
914
+ # END for each dry-run mode
915
915
916
916
@with_rw_directory
917
917
def test_ignore_non_submodule_file (self , rwdir ):
@@ -974,7 +974,6 @@ def test_rename(self, rwdir):
974
974
sm_mod = sm .module ()
975
975
if osp .isfile (osp .join (sm_mod .working_tree_dir , ".git" )) == sm ._need_gitfile_submodules (parent .git ):
976
976
assert sm_mod .git_dir .endswith (join_path_native (".git" , "modules" , new_sm_name ))
977
- # end
978
977
979
978
@with_rw_directory
980
979
def test_branch_renames (self , rw_dir ):
0 commit comments