Initialize git_repository_init_options structure.

This commit is contained in:
Alex Shvartzkop 2024-02-27 00:25:04 +03:00
parent d94b0771ca
commit d84a5e6f03
1 changed files with 1 additions and 2 deletions

View File

@ -56,8 +56,7 @@ DIALOG_GIT_REPOSITORY::DIALOG_GIT_REPOSITORY( wxWindow* aParent, git_repository*
m_tempRepo = true;
m_tempPath = wxFileName::CreateTempFileName( "kicadtestrepo" );
git_repository_init_options options;
options.version = GIT_REPOSITORY_INIT_OPTIONS_VERSION;
git_repository_init_options options = GIT_REPOSITORY_INIT_OPTIONS_INIT;
options.flags = GIT_REPOSITORY_INIT_MKPATH | GIT_REPOSITORY_INIT_NO_REINIT;
git_repository_init_ext( &m_repository, m_tempPath.ToStdString().c_str(), &options );
}