Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc2eb6b5

Browse files
committed
Add missing comment revisions in git/objects/submodule/base.py
1 parenta5fc1d8 commitc2eb6b5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎git/objects/submodule/base.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def __init__(
136136
def_set_cache_(self,attr:str)->None:
137137
ifattrin ("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
exceptcp.NoSectionErrorase:
@@ -147,7 +147,7 @@ def _set_cache_(self, attr: str) -> None:
147147
)frome
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
elifattr=="_name":
153153
raiseAttributeError("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
ifnotbranch_is_default:
490490
kwargs["b"]=br.name
@@ -531,7 +531,7 @@ def add(
531531

532532
sm._url=url
533533
ifnotbranch_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

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp