Prevent fetch without repo

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20152

(cherry picked from commit 18ac99d838)
This commit is contained in:
Seth Hillbrand
2025-02-28 08:35:58 -08:00
parent 2bb2f1398c
commit 3f984704be
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -39,7 +39,10 @@ GIT_PULL_HANDLER::~GIT_PULL_HANDLER()
bool GIT_PULL_HANDLER::PerformFetch()
{
// Fetch updates from remote repository
if( !m_repo )
return false;
// Fetch updates from remote repository
git_remote* remote = nullptr;
if( git_remote_lookup( &remote, m_repo, "origin" ) != 0 )