Skip to content

Commit 1e044ea

Browse files
authored
Merge pull request #1844 from EliahKagan/refresh-message
Suggest full-path refresh() in failure message
2 parents c17f995 + b8ebff8 commit 1e044ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: git/cmd.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ def refresh(cls, path: Union[None, PathLike] = None) -> bool:
397397
3. Pass a *path* argument. This path, if not absolute, it immediately
398398
resolved, relative to the current directory. This resolution occurs at
399399
the time of the refresh, and when git commands are run, they are run with
400-
that actual path. If a *path* argument is passed, the
400+
that previously resolved path. If a *path* argument is passed, the
401401
``GIT_PYTHON_GIT_EXECUTABLE`` environment variable is not consulted.
402402
403403
:note: Refreshing always sets the :attr:`Git.GIT_PYTHON_GIT_EXECUTABLE` class
@@ -438,7 +438,7 @@ def refresh(cls, path: Union[None, PathLike] = None) -> bool:
438438
The git executable must be specified in one of the following ways:
439439
- be included in your $PATH
440440
- be set via $%s
441-
- explicitly set via git.refresh()
441+
- explicitly set via git.refresh("/full/path/to/git")
442442
"""
443443
)
444444
% cls._git_exec_env_var

0 commit comments

Comments
 (0)