Skip to content

Commit 9b5531b

Browse files
committed
Fix typos and further clarify Git.refresh docstring
This further improves the text previously introduced in #1829 and improved in #1844.
1 parent fe1934c commit 9b5531b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: git/cmd.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,8 @@ def refresh(cls, path: Union[None, PathLike] = None) -> bool:
379379
:note: The top-level :func:`git.refresh` should be preferred because it calls
380380
this method and may also update other state accordingly.
381381
382-
:note: There are three different ways to specify what command refreshing causes
383-
to be uses for git:
382+
:note: There are three different ways to specify the command that refreshing
383+
causes to be used for git:
384384
385385
1. Pass no *path* argument and do not set the ``GIT_PYTHON_GIT_EXECUTABLE``
386386
environment variable. The command name ``git`` is used. It is looked up
@@ -394,9 +394,9 @@ def refresh(cls, path: Union[None, PathLike] = None) -> bool:
394394
in each command run. Setting ``GIT_PYTHON_GIT_EXECUTABLE`` to ``git`` has
395395
the same effect as not setting it.
396396
397-
3. Pass a *path* argument. This path, if not absolute, it immediately
397+
3. Pass a *path* argument. This path, if not absolute, is immediately
398398
resolved, relative to the current directory. This resolution occurs at
399-
the time of the refresh, and when git commands are run, they are run with
399+
the time of the refresh. When git commands are run, they are run using
400400
that previously resolved path. If a *path* argument is passed, the
401401
``GIT_PYTHON_GIT_EXECUTABLE`` environment variable is not consulted.
402402

0 commit comments

Comments
 (0)