Commit b72c66a
fix: address review feedback on error handling and robustness
- Add comprehensive error handling for all git operations to prevent script termination
- Implement progressive fallback: shallow clone → deep clone → full clone
- Add proper cleanup in exception scenarios using try/catch/finally blocks
- Make tests more robust to reduce external dependency brittleness
- Add test for invalid repository error handling
- Improve error messages with specific exit codes
- Ensure temporary repository directories are always cleaned up
Addresses review comments:
- Fix PSNativeCommandErrorActionPreference termination issue
- Handle git command failures gracefully
- Improve git clone depth handling
- Add better directory cleanup
- Make tests less dependent on external repository state
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent 54e710f commit b72c66a
File tree
2 files changed
+116
-25
lines changed- updater
- scripts
- tests
2 files changed
+116
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
58 | 97 | | |
59 | 98 | | |
60 | 99 | | |
61 | | - | |
62 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
63 | 111 | | |
64 | | - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
65 | 118 | | |
66 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
67 | 133 | | |
68 | | - | |
69 | | - | |
| 134 | + | |
| 135 | + | |
70 | 136 | | |
71 | 137 | | |
72 | 138 | | |
| 139 | + | |
| 140 | + | |
73 | 141 | | |
74 | 142 | | |
75 | 143 | | |
| |||
97 | 165 | | |
98 | 166 | | |
99 | 167 | | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
100 | 172 | | |
101 | 173 | | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
102 | 184 | | |
103 | 185 | | |
104 | 186 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
267 | | - | |
268 | | - | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
269 | 270 | | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
280 | 274 | | |
281 | | - | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
282 | 278 | | |
283 | 279 | | |
284 | 280 | | |
285 | 281 | | |
286 | 282 | | |
287 | 283 | | |
288 | 284 | | |
289 | | - | |
290 | | - | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
291 | 289 | | |
292 | 290 | | |
293 | 291 | | |
| |||
310 | 308 | | |
311 | 309 | | |
312 | 310 | | |
313 | | - | |
314 | | - | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
315 | 324 | | |
316 | 325 | | |
0 commit comments