Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1e044ea

Browse files
authored
Merge pull request#1844 from EliahKagan/refresh-message
Suggest full-path refresh() in failure message
2 parentsc17f995 +b8ebff8 commit1e044ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎git/cmd.py

Lines changed: 2 additions & 2 deletions
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-
thatactual path. If a *path* argument is passed, the
400+
thatpreviously 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)

[8]ページ先頭

©2009-2025 Movatter.jp