Commit b4aa626
authored
## Why
Closes #12967. Users who pass `--no-git` expect create-turbo to leave
git alone, not initialize a repo or delete an existing `.git` directory.
## What
Stops the `--no-git` path from doing any git work and removes the
now-unused `.git` deletion helper.
## How
Adds coverage that `--no-git` does not call the git init helper or spawn
git commands, while preserving normal git initialization when the flag
is not used.
Verified with:
- `pnpm --filter create-turbo test -- --runTestsByPath
__tests__/git.test.ts __tests__/index.test.ts`
- `pnpm --filter create-turbo check-types`
1 parent 7952b46 commit b4aa626
4 files changed
Lines changed: 6 additions & 73 deletions
File tree
- packages/create-turbo
- __tests__
- src
- commands/create
- utils
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
| 7 | + | |
12 | 8 | | |
13 | 9 | | |
14 | 10 | | |
| |||
255 | 251 | | |
256 | 252 | | |
257 | 253 | | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | 254 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
295 | | - | |
| 295 | + | |
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
| |||
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
| 336 | + | |
343 | 337 | | |
344 | 338 | | |
345 | 339 | | |
| |||
350 | 344 | | |
351 | 345 | | |
352 | 346 | | |
353 | | - | |
| 347 | + | |
354 | 348 | | |
355 | 349 | | |
356 | 350 | | |
357 | 351 | | |
358 | 352 | | |
359 | 353 | | |
360 | | - | |
361 | 354 | | |
362 | 355 | | |
363 | | - | |
| 356 | + | |
364 | 357 | | |
365 | 358 | | |
366 | 359 | | |
| |||
405 | 398 | | |
406 | 399 | | |
407 | 400 | | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | 401 | | |
413 | 402 | | |
414 | 403 | | |
| |||
418 | 407 | | |
419 | 408 | | |
420 | 409 | | |
421 | | - | |
422 | 410 | | |
423 | 411 | | |
424 | 412 | | |
425 | 413 | | |
426 | 414 | | |
427 | 415 | | |
428 | | - | |
429 | 416 | | |
430 | 417 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | 299 | | |
304 | 300 | | |
305 | 301 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
0 commit comments