Skip to content

Commit 307f198

Browse files
authored
Merge pull request #1810 from EliahKagan/refresh
Clarify why GIT_PYTHON_GIT_EXECUTABLE may be set on failure
2 parents 867305d + 82cbc6c commit 307f198

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Diff for: git/cmd.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -475,9 +475,10 @@ def refresh(cls, path: Union[None, PathLike] = None) -> bool:
475475
)
476476
raise ImportError(err)
477477

478-
# We get here if this was the init refresh and the refresh mode was not
479-
# error. Go ahead and set the GIT_PYTHON_GIT_EXECUTABLE such that we
480-
# discern the difference between a first import and a second import.
478+
# We get here if this was the initial refresh and the refresh mode was
479+
# not error. Go ahead and set the GIT_PYTHON_GIT_EXECUTABLE such that we
480+
# discern the difference between the first refresh at import time
481+
# and subsequent calls to refresh().
481482
cls.GIT_PYTHON_GIT_EXECUTABLE = cls.git_exec_name
482483
else:
483484
# After the first refresh (when GIT_PYTHON_GIT_EXECUTABLE is no longer

0 commit comments

Comments
 (0)