Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork939
Commitbaf3457
committed
Fix Git.execute shell use and reporting bugs
This updates the shell variable itself, only when it is None, fromself.USE_SHELL.(That attribute is usually Git.USE_SHELL rather than an instanceattribute. But although people probably shouldn't set it oninstances, people will expect that this is permitted.)Now:- USE_SHELL is used as a fallback only. When shell=False is passed, USE_SHELL is no longer consuled. Thus shell=False always keeps a shell from being used, even in the non-default case where the USE_SHELL attribue has been set to True.- The debug message printed to the log shows the actual value that is being passed to Popen, because the updated shell variable is used both to produce that message and in the Popen call.1 parent41294d5 commitbaf3457
1 file changed
+3
-1
lines changedLines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
974 | 974 |
| |
975 | 975 |
| |
976 | 976 |
| |
| 977 | + | |
| 978 | + | |
977 | 979 |
| |
978 | 980 |
| |
979 | 981 |
| |
| |||
992 | 994 |
| |
993 | 995 |
| |
994 | 996 |
| |
995 |
| - | |
| 997 | + | |
996 | 998 |
| |
997 | 999 |
| |
998 | 1000 |
| |
|
0 commit comments
Comments
(0)