Commit baf3457
committed
Fix Git.execute shell use and reporting bugs
This updates the shell variable itself, only when it is None, from
self.USE_SHELL.
(That attribute is usually Git.USE_SHELL rather than an instance
attribute. But although people probably shouldn't set it on
instances, 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 parent 41294d5 commit baf3457
1 file changed
+3
-1
lines changed| 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