Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork939
Commit106bbe6
committed
Update USE_SHELL docstring on why not to use it anymore
This expands the "docstring" associated with the Git.USE_SHELLattribute to mention the dangers of setting it to True and explainthe old purpose it once served for graphical Windows applicationsand why it is no longer required for that since 2.0.8. (See#1781.)Although setting `Git.USE_SHELL = True` or passing `shell=True`should rarely if ever be done and is no longer necessary even inthe specific scenario for which it was once recommended, I havedeliberately avoided claiming USE_SHELL is deprecated at this time.Whether GitPython should formally deprecate it (documenting it assuch and issuing DeprecationWarning on some or all uses) may hingeon whether it is possible for GitPython to incorporate enhancementsthat account for and suppress at least some unintended shellexpansions when shell=True is passed through dynamic methods thatindirectly call Git.execute. The decision may also benefit fromexamination of existing common uses, if any, of `USE_SHELL = True`.1 parent94a85d1 commit106bbe6
1 file changed
+14
-4
lines changedLines changed: 14 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
282 | 282 |
| |
283 | 283 |
| |
284 | 284 |
| |
285 |
| - | |
286 |
| - | |
287 |
| - | |
288 |
| - | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
289 | 299 |
| |
290 | 300 |
| |
291 | 301 |
| |
|
0 commit comments
Comments
(0)