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

Commitb8ebff8

Browse files
committed
Suggest full-path refresh() in failure message
This does not suggest or recommend *preferring* to explicitly callrefresh() over the other other techniques, but it clarifies thatthe use of refresh() being presented needs a path argument. It alsoshows that path in the form of a full path, so users are lesslikely to be misled into thinking a command name or other relativepath should be passed to refresh(), which should rarely be done(since refresh(path) resolves path).
1 parent7d96a1a commitb8ebff8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎git/cmd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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