Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
trace2: prevent segfault on config collection where no value specified
When TRACE2 analytics is enabled, a git config option that has no value causes a segfault. Steps to Reproduce GIT_TRACE2=true GIT_TRACE2_CONFIG_PARAMS=status.* git -c status.relativePaths version Expected Result git version 2.46.0 Actual Result zsh: segmentation fault GIT_TRACE2=true This adds a null check to prevent the segfault and instead return the "empty config value" error. Signed-off-by: Adam Murray <ad@canva.com>
- Loading branch information