Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork939
Commit66ff4c1
committed
Omit CWD in search for bash.exe to run hooks on Windows
This uses the same NoDefaultCurrentDirectoryInExePath technique forthe Popen call in git.index.fun.run_commit_hook on Windows as isalready used in git.cmd.Git.execute.The code is simpler in run_commit_hook because a shell is neverused to run bash.exe. (bash.exe is itself a shell, but we neverrun it *via* a shell by passing shell=True to Popen.) Nonetheless,it may make sense to extract out a helper function both can call.This commit does not do that, so there is some code duplication.1 parent61b4dda commit66ff4c1
1 file changed
+15
-9
lines changedLines changed: 15 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| 6 | + | |
6 | 7 |
| |
7 | 8 |
| |
8 | 9 |
| |
| |||
26 | 27 |
| |
27 | 28 |
| |
28 | 29 |
| |
29 |
| - | |
| 30 | + | |
30 | 31 |
| |
31 | 32 |
| |
32 | 33 |
| |
| |||
90 | 91 |
| |
91 | 92 |
| |
92 | 93 |
| |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
93 | 98 |
| |
94 | 99 |
| |
95 | 100 |
| |
| |||
98 | 103 |
| |
99 | 104 |
| |
100 | 105 |
| |
101 |
| - | |
102 |
| - | |
103 |
| - | |
104 |
| - | |
105 |
| - | |
106 |
| - | |
107 |
| - | |
108 |
| - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
109 | 115 |
| |
110 | 116 |
| |
111 | 117 |
| |
|
0 commit comments
Comments
(0)