| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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 libgit2#2187
| Back | FazBrowse Home | New Git URL |
Summary
Root cause (brief)
Under Native AOT, class-based sequential marshalling is effectively [In]-only. git_config_find_global can return success while managed GitBuf.ptr stays zero, so discovery returns no path and only local repo config is loaded.
Test plan
Fixes #2187