Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4aa750a

Browse files
committed
Removed remaining references to git.setup function
Removed few remaining references to git.setup function (as it was renamed to refresh).
1 parent 3430bde commit 4aa750a

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 the setup step in
195+
# note that the git executable is actually found during the refresh step in
196196
# the top level __init__
197197

198198
@classmethod
199199
def refresh(cls, path=None):
200-
"""This gets called by the setup function (see the top level __init__).
200+
"""This gets called by the refresh function (see the top level __init__).
201201
"""
202202
# discern which path to refresh with
203203
if path is not None:
@@ -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
if old_git is None:
230-
# on the first setup (when GIT_PYTHON_GIT_EXECUTABLE is
230+
# on the first refresh (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
raise ImportError(err)
268268

269269
else:
270-
# after the first setup (when GIT_PYTHON_GIT_EXECUTABLE
270+
# after the first refresh (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)