mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-11 16:10:10 +00:00
Prevent fetch without repo
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20152
This commit is contained in:
parent
75bed91789
commit
18ac99d838
@ -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 )
|
||||
|
@ -2623,7 +2623,7 @@ void PROJECT_TREE_PANE::onGitSyncTimer( wxTimerEvent& aEvent )
|
||||
{
|
||||
KIGIT_COMMON* gitCommon = m_TreeProject->GitCommon();
|
||||
|
||||
if( !gitCommon || !gitCommon->GetRepo() )
|
||||
if( !gitCommon )
|
||||
return;
|
||||
|
||||
GIT_PULL_HANDLER handler( gitCommon );
|
||||
|
Loading…
Reference in New Issue
Block a user