@@ -136,7 +136,7 @@ def __init__(
136
136
def _set_cache_ (self , attr : str ) -> None :
137
137
if attr in ("path" , "_url" , "_branch_path" ):
138
138
reader : SectionConstraint = self .config_reader ()
139
- # default submodule values
139
+ # Default submodule values.
140
140
try :
141
141
self .path = reader .get ("path" )
142
142
except cp .NoSectionError as e :
@@ -147,7 +147,7 @@ def _set_cache_(self, attr: str) -> None:
147
147
) from e
148
148
149
149
self ._url = reader .get ("url" )
150
- # git-python extension values - optional
150
+ # GitPython extension values - optional.
151
151
self ._branch_path = reader .get_value (self .k_head_option , git .Head .to_full_path (self .k_head_default ))
152
152
elif attr == "_name" :
153
153
raise AttributeError ("Cannot retrieve the name of a submodule if it was not set initially" )
@@ -484,7 +484,7 @@ def add(
484
484
# END verify we have url
485
485
url = urls [0 ]
486
486
else :
487
- # clone new repo
487
+ # Clone new repo.
488
488
kwargs : Dict [str , Union [bool , int , str , Sequence [TBD ]]] = {"n" : no_checkout }
489
489
if not branch_is_default :
490
490
kwargs ["b" ] = br .name
@@ -531,7 +531,7 @@ def add(
531
531
532
532
sm ._url = url
533
533
if not branch_is_default :
534
- # store full path
534
+ # Store full path.
535
535
writer .set_value (cls .k_head_option , br .path )
536
536
sm ._branch_path = br .path
537
537
0 commit comments