File tree 2 files changed +139
-91
lines changed
2 files changed +139
-91
lines changed Original file line number Diff line number Diff line change 122
122
def refresh (path : Optional [PathLike ] = None ) -> None :
123
123
"""Convenience method for setting the git executable path.
124
124
125
- :param path: Optional path to the Git executable. If not absolute, it is resolved
125
+ :param path:
126
+ Optional path to the Git executable. If not absolute, it is resolved
126
127
immediately, relative to the current directory.
127
128
128
- :note: The *path* parameter is usually omitted and cannot be used to specify a
129
- custom command whose location is looked up in a path search on each call. See
129
+ :note:
130
+ The *path* parameter is usually omitted and cannot be used to specify a custom
131
+ command whose location is looked up in a path search on each call. See
130
132
:meth:`Git.refresh` for details on how to achieve this.
131
133
132
- :note: This calls :meth:`Git.refresh` and sets other global configuration according
133
- to the effect of doing so. As such, this function should usually be used instead
134
- of using :meth:`Git.refresh` or :meth:`FetchInfo.refresh` directly.
134
+ :note:
135
+ This calls :meth:`Git.refresh` and sets other global configuration according to
136
+ the effect of doing so. As such, this function should usually be used instead of
137
+ using :meth:`Git.refresh` or :meth:`FetchInfo.refresh` directly.
135
138
136
- :note: This function is called automatically, with no arguments, at import time.
139
+ :note:
140
+ This function is called automatically, with no arguments, at import time.
137
141
"""
138
142
global GIT_OK
139
143
GIT_OK = False
You can’t perform that action at this time.
0 commit comments