@@ -136,7 +136,7 @@ def __init__(
136136 def _set_cache_ (self , attr : str ) -> None :
137137 if attr in ("path" , "_url" , "_branch_path" ):
138138 reader : SectionConstraint = self .config_reader ()
139- # default submodule values
139+ # Default submodule values.
140140 try :
141141 self .path = reader .get ("path" )
142142 except cp .NoSectionError as e :
@@ -147,7 +147,7 @@ def _set_cache_(self, attr: str) -> None:
147147 ) from e
148148
149149 self ._url = reader .get ("url" )
150- # git-python extension values - optional
150+ # GitPython extension values - optional.
151151 self ._branch_path = reader .get_value (self .k_head_option , git .Head .to_full_path (self .k_head_default ))
152152 elif attr == "_name" :
153153 raise AttributeError ("Cannot retrieve the name of a submodule if it was not set initially" )
@@ -484,7 +484,7 @@ def add(
484484 # END verify we have url
485485 url = urls [0 ]
486486 else :
487- # clone new repo
487+ # Clone new repo.
488488 kwargs : Dict [str , Union [bool , int , str , Sequence [TBD ]]] = {"n" : no_checkout }
489489 if not branch_is_default :
490490 kwargs ["b" ] = br .name
@@ -531,7 +531,7 @@ def add(
531531
532532 sm ._url = url
533533 if not branch_is_default :
534- # store full path
534+ # Store full path.
535535 writer .set_value (cls .k_head_option , br .path )
536536 sm ._branch_path = br .path
537537
0 commit comments