summaryrefslogtreecommitdiff
path: root/git/cmd.py
diff options
context:
space:
mode:
authorOdegard, Ken <ken.odegard@gmail.com>2017-07-13 11:50:25 +0200
committerOdegard, Ken <ken.odegard@gmail.com>2017-07-13 11:50:25 +0200
commit4aa750a96baf96ac766fc874c8c3714ceb4717ee (patch)
treea6abc132e74a0a6113849eef319cbecd3c115b50 /git/cmd.py
parent3430bde60ae65b54c08ffa73de1f16643c7c3bfd (diff)
downloadgitpython-4aa750a96baf96ac766fc874c8c3714ceb4717ee.tar.gz
Removed remaining references to git.setup function
Removed few remaining references to git.setup function (as it was renamed to refresh).
Diffstat (limited to 'git/cmd.py')
-rw-r--r--git/cmd.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/git/cmd.py b/git/cmd.py
index 0bf0fee4..8f79db0d 100644
--- a/git/cmd.py
+++ b/git/cmd.py
@@ -192,12 +192,12 @@ class Git(LazyMixin):
# Provide the full path to the git executable. Otherwise it assumes git is in the path
_git_exec_env_var = "GIT_PYTHON_GIT_EXECUTABLE"
GIT_PYTHON_GIT_EXECUTABLE = None
- # note that the git executable is actually found during the setup step in
+ # note that the git executable is actually found during the refresh step in
# the top level __init__
@classmethod
def refresh(cls, path=None):
- """This gets called by the setup function (see the top level __init__).
+ """This gets called by the refresh function (see the top level __init__).
"""
# discern which path to refresh with
if path is not None:
@@ -223,11 +223,11 @@ class Git(LazyMixin):
Bad git executable. The git executable must be specified in one of the following ways:
(1) be included in your $PATH, or
(2) be set via $GIT_PYTHON_GIT_EXECUTABLE, or
- (3) explicitly set via git.setup (or git.refresh).
+ (3) explicitly set via git.refresh.
""")
if old_git is None:
- # on the first setup (when GIT_PYTHON_GIT_EXECUTABLE is
+ # on the first refresh (when GIT_PYTHON_GIT_EXECUTABLE is
# None) we only warn the user and simply set the default
# executable
cls.GIT_PYTHON_GIT_EXECUTABLE = cls.git_exec_name
@@ -267,7 +267,7 @@ class Git(LazyMixin):
raise ImportError(err)
else:
- # after the first setup (when GIT_PYTHON_GIT_EXECUTABLE
+ # after the first refresh (when GIT_PYTHON_GIT_EXECUTABLE
# is no longer None) we raise an exception and reset the
# GIT_PYTHON_GIT_EXECUTABLE to whatever the value was
# previously