FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Suggest full-path refresh() in failure message by EliahKagan · Pull Request #1844 · gitpython-developers/GitPython · GitHub

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
4 changes: 2 additions & 2 deletions git/cmd.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ def refresh(cls, path: Union[None, PathLike] = None) -> bool:
3. Pass a *path* argument. This path, if not absolute, it immediately
resolved, relative to the current directory. This resolution occurs at
the time of the refresh, and when git commands are run, they are run with
that actual path. If a *path* argument is passed, the
that previously resolved path. If a *path* argument is passed, the
``GIT_PYTHON_GIT_EXECUTABLE`` environment variable is not consulted.

:note: Refreshing always sets the :attr:`Git.GIT_PYTHON_GIT_EXECUTABLE` class
Expand Down Expand Up @@ -438,7 +438,7 @@ def refresh(cls, path: Union[None, PathLike] = None) -> bool:
The git executable must be specified in one of the following ways:
- be included in your $PATH
- be set via $%s
- explicitly set via git.refresh()
- explicitly set via git.refresh("/full/path/to/git")
"""
)
% cls._git_exec_env_var
Expand Down

Back | FazBrowse Home | New Git URL