Commit fafbdc8
Address review feedback about config lookup
Review feedback: Git treats core.hooksPath case-insensitively even though GitConfigParser preserves option casing, empty values should safely fall back, and the default-path test can inherit a host-level hooksPath.
Find the configured option with a case-insensitive scan of the effective core section, treat missing and empty values as the legacy .git/hooks setting, and spell the regression setting with mixed case. Scope the legacy fallback test to repository configuration and exercise both missing and empty values so system and user settings cannot affect it.1 parent f7aa470 commit fafbdc8
2 files changed
Lines changed: 19 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | | - | |
72 | | - | |
| 70 | + | |
| 71 | + | |
73 | 72 | | |
74 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
75 | 77 | | |
76 | 78 | | |
77 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1099 | 1099 | | |
1100 | 1100 | | |
1101 | 1101 | | |
1102 | | - | |
1103 | | - | |
1104 | | - | |
1105 | | - | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
1106 | 1114 | | |
1107 | 1115 | | |
1108 | 1116 | | |
| |||
1198 | 1206 | | |
1199 | 1207 | | |
1200 | 1208 | | |
1201 | | - | |
| 1209 | + | |
1202 | 1210 | | |
1203 | 1211 | | |
1204 | 1212 | | |
| |||
0 commit comments