Commit 0a145bc
committed
Fix config discovery under Native AOT (GitBuf marshalling)
Under Native AOT, sequential-layout class marshalling for GitBuf is
effectively [In]-only, so git_config_find_* succeeds but managed ptr
stays zero and global/system config never loads. BuildSignature then
returns null when user.name/email live outside local repo config.
Use a blittable GitBufNative struct with ref P/Invoke for path-find
APIs and ConvertPath so config discovery works in AOT publishes.
Fixes #21871 parent cb58177 commit 0a145bc
3 files changed
Lines changed: 49 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
6 | 16 | | |
7 | 17 | | |
8 | 18 | | |
| |||
15 | 25 | | |
16 | 26 | | |
17 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
18 | 41 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
363 | 366 | | |
364 | 367 | | |
365 | 368 | | |
| |||
468 | 471 | | |
469 | 472 | | |
470 | 473 | | |
| 474 | + | |
| 475 | + | |
471 | 476 | | |
472 | | - | |
| 477 | + | |
473 | 478 | | |
474 | 479 | | |
475 | | - | |
| 480 | + | |
476 | 481 | | |
477 | 482 | | |
478 | | - | |
| 483 | + | |
479 | 484 | | |
480 | 485 | | |
481 | | - | |
| 486 | + | |
482 | 487 | | |
483 | 488 | | |
484 | 489 | | |
| |||
1522 | 1527 | | |
1523 | 1528 | | |
1524 | 1529 | | |
1525 | | - | |
| 1530 | + | |
1526 | 1531 | | |
1527 | 1532 | | |
1528 | 1533 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2447 | 2447 | | |
2448 | 2448 | | |
2449 | 2449 | | |
2450 | | - | |
| 2450 | + | |
2451 | 2451 | | |
2452 | 2452 | | |
2453 | 2453 | | |
| |||
3830 | 3830 | | |
3831 | 3831 | | |
3832 | 3832 | | |
3833 | | - | |
| 3833 | + | |
| 3834 | + | |
| 3835 | + | |
| 3836 | + | |
| 3837 | + | |
| 3838 | + | |
| 3839 | + | |
| 3840 | + | |
3834 | 3841 | | |
3835 | | - | |
| 3842 | + | |
| 3843 | + | |
3836 | 3844 | | |
3837 | | - | |
| 3845 | + | |
3838 | 3846 | | |
3839 | 3847 | | |
3840 | 3848 | | |
| |||
3844 | 3852 | | |
3845 | 3853 | | |
3846 | 3854 | | |
| 3855 | + | |
| 3856 | + | |
| 3857 | + | |
| 3858 | + | |
3847 | 3859 | | |
3848 | 3860 | | |
3849 | 3861 | | |
| |||
0 commit comments