@@ -192,12 +192,12 @@ def __setstate__(self, d):
192
192
# Provide the full path to the git executable. Otherwise it assumes git is in the path
193
193
_git_exec_env_var = "GIT_PYTHON_GIT_EXECUTABLE"
194
194
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
196
196
# the top level __init__
197
197
198
198
@classmethod
199
199
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__).
201
201
"""
202
202
# discern which path to refresh with
203
203
if path is not None :
@@ -223,11 +223,11 @@ def refresh(cls, path=None):
223
223
Bad git executable. The git executable must be specified in one of the following ways:
224
224
(1) be included in your $PATH, or
225
225
(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.
227
227
""" )
228
228
229
229
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
231
231
# None) we only warn the user and simply set the default
232
232
# executable
233
233
cls .GIT_PYTHON_GIT_EXECUTABLE = cls .git_exec_name
@@ -267,7 +267,7 @@ def refresh(cls, path=None):
267
267
raise ImportError (err )
268
268
269
269
else :
270
- # after the first setup (when GIT_PYTHON_GIT_EXECUTABLE
270
+ # after the first refresh (when GIT_PYTHON_GIT_EXECUTABLE
271
271
# is no longer None) we raise an exception and reset the
272
272
# GIT_PYTHON_GIT_EXECUTABLE to whatever the value was
273
273
# previously
0 commit comments