From 4aa750a96baf96ac766fc874c8c3714ceb4717ee Mon Sep 17 00:00:00 2001 From: "Odegard, Ken" Date: Thu, 13 Jul 2017 11:50:25 +0200 Subject: Removed remaining references to git.setup function Removed few remaining references to git.setup function (as it was renamed to refresh). --- git/cmd.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'git/cmd.py') 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 -- cgit v1.2.1