diff --git a/app/controllers/api/functions.php b/app/controllers/api/functions.php index f23fbf2f69..c119bfd76a 100644 --- a/app/controllers/api/functions.php +++ b/app/controllers/api/functions.php @@ -739,7 +739,7 @@ App::put('/v1/functions/:functionId') $isConnected = !empty($function->getAttribute('providerRepositoryId', '')); - // Git disconnect logic + // Git disconnect logic. Disconnecting only when providerRepositoryId is empty, allowing for continue updates without disconnecting git if ($isConnected && ($providerRepositoryId !== null && empty($providerRepositoryId))) { $repositories = $dbForConsole->find('repositories', [ Query::equal('projectInternalId', [$project->getInternalId()]),