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

Commit4aa750a

Browse files
committed
Removed remaining references to git.setup function
Removed few remaining references to git.setup function (as it wasrenamed to refresh).
1 parent3430bde commit4aa750a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎git/cmd.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,12 +192,12 @@ def __setstate__(self, d):
192192
# Provide the full path to the git executable. Otherwise it assumes git is in the path
193193
_git_exec_env_var="GIT_PYTHON_GIT_EXECUTABLE"
194194
GIT_PYTHON_GIT_EXECUTABLE=None
195-
# note that the git executable is actually found during thesetup step in
195+
# note that the git executable is actually found during therefresh step in
196196
# the top level __init__
197197

198198
@classmethod
199199
defrefresh(cls,path=None):
200-
"""This gets called by thesetup function (see the top level __init__).
200+
"""This gets called by therefresh function (see the top level __init__).
201201
"""
202202
# discern which path to refresh with
203203
ifpathisnotNone:
@@ -223,11 +223,11 @@ def refresh(cls, path=None):
223223
Bad git executable. The git executable must be specified in one of the following ways:
224224
(1) be included in your $PATH, or
225225
(2) be set via $GIT_PYTHON_GIT_EXECUTABLE, or
226-
(3) explicitly set via git.setup (or git.refresh).
226+
(3) explicitly set via git.refresh.
227227
""")
228228

229229
ifold_gitisNone:
230-
# on the firstsetup (when GIT_PYTHON_GIT_EXECUTABLE is
230+
# on the firstrefresh (when GIT_PYTHON_GIT_EXECUTABLE is
231231
# None) we only warn the user and simply set the default
232232
# executable
233233
cls.GIT_PYTHON_GIT_EXECUTABLE=cls.git_exec_name
@@ -267,7 +267,7 @@ def refresh(cls, path=None):
267267
raiseImportError(err)
268268

269269
else:
270-
# after the firstsetup (when GIT_PYTHON_GIT_EXECUTABLE
270+
# after the firstrefresh (when GIT_PYTHON_GIT_EXECUTABLE
271271
# is no longer None) we raise an exception and reset the
272272
# GIT_PYTHON_GIT_EXECUTABLE to whatever the value was
273273
# previously

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp