Commit 561fa96
committed
fix: remove the hook file before writing
Pre-installed hooks may be symbolic links pointing to a shared binary.
Directly overwriting the commit-msg hook could break other dependencies.
Therefore, it is safer to remove the hook before writing.
Change-Id: If0d26d77f4b7ea061ce1383cfb922a4c5b7eb335
Signed-off-by: Jiang Xin <zhiyou.jx@alibaba-inc.com>1 parent 10fb892 commit 561fa96
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
202 | 207 | | |
203 | 208 | | |
204 | 209 | | |
| |||
0 commit comments