Commit 0a32b3f
committed
fix(checkout): use git clone instead of gh repo clone
Root cause: gh repo clone creates incomplete clones where commit objects
are missing from the pack file. The refs and .idx files exist, but the
actual .pack data is not fully downloaded. This causes "bad object HEAD"
and "corrupt patch at line N" errors.
Fix: use git clone --depth 1 with HTTPS URL directly. This is more reliable
and also avoids the gh-specific syntax issues.
Changed:
- First clone: 'git clone --depth 1 --branch {branch} --
https://github.com/{repo}.git {path}'
- Retry clone: same (already used --depth 1)
- Removed both gh repo clone invocations
Note: git clone sets up origin remote (unlike gh repo clone), which also
enables 'git fetch origin' in the cache sync path.
Verification:
- php -l: no errors
- PHPStan level 8: 0 errors
- Worker tests: 75/75 pass
- CLI tests: 232/232 pass1 parent fcae2db commit 0a32b3f
1 file changed
Lines changed: 13 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1472 | 1472 | | |
1473 | 1473 | | |
1474 | 1474 | | |
1475 | | - | |
1476 | | - | |
1477 | | - | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
1478 | 1479 | | |
1479 | | - | |
1480 | | - | |
1481 | | - | |
1482 | | - | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
1483 | 1484 | | |
1484 | 1485 | | |
1485 | 1486 | | |
| |||
1521 | 1522 | | |
1522 | 1523 | | |
1523 | 1524 | | |
1524 | | - | |
| 1525 | + | |
1525 | 1526 | | |
1526 | | - | |
1527 | | - | |
1528 | | - | |
1529 | | - | |
| 1527 | + | |
| 1528 | + | |
| 1529 | + | |
| 1530 | + | |
1530 | 1531 | | |
1531 | 1532 | | |
1532 | 1533 | | |
| |||
0 commit comments