From e13f4c8545d6dd3bfb0e15446d0e604d95b9bcde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Mon, 9 Feb 2026 13:26:33 +0100 Subject: [PATCH 1/3] Fix VCS template flow --- src/Appwrite/Platform/Modules/Compute/Base.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Appwrite/Platform/Modules/Compute/Base.php b/src/Appwrite/Platform/Modules/Compute/Base.php index db0cfe7daf..e69cfd2fdc 100644 --- a/src/Appwrite/Platform/Modules/Compute/Base.php +++ b/src/Appwrite/Platform/Modules/Compute/Base.php @@ -109,6 +109,12 @@ class Base extends Action } catch (\Throwable $error) { // Ignore; deployment can continue } + } else { + // Fallback till we have tag support here + // Goal is to set providerBranch, so build worker knows what to clone as base + // Without this, clone command would be cloning empty branch, and failing + $providerBranch = empty($reference) ? $function->getAttribute('providerBranch', 'main') : $reference; + $branchUrl = "https://github.com/$owner/$repositoryName/tree/$providerBranch"; } $repositoryUrl = "https://github.com/$owner/$repositoryName"; From 96e1221a5f76593f82a462e0039410d38731f30d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Mon, 9 Feb 2026 13:27:31 +0100 Subject: [PATCH 2/3] Fix implementation --- src/Appwrite/Platform/Modules/Compute/Base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Appwrite/Platform/Modules/Compute/Base.php b/src/Appwrite/Platform/Modules/Compute/Base.php index e69cfd2fdc..ad467b5488 100644 --- a/src/Appwrite/Platform/Modules/Compute/Base.php +++ b/src/Appwrite/Platform/Modules/Compute/Base.php @@ -113,7 +113,7 @@ class Base extends Action // Fallback till we have tag support here // Goal is to set providerBranch, so build worker knows what to clone as base // Without this, clone command would be cloning empty branch, and failing - $providerBranch = empty($reference) ? $function->getAttribute('providerBranch', 'main') : $reference; + $providerBranch = $function->getAttribute('providerBranch', 'main'); $branchUrl = "https://github.com/$owner/$repositoryName/tree/$providerBranch"; } From e09dd98f360b680bbcbaea24101dc63de3f21740 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Mon, 9 Feb 2026 13:30:46 +0100 Subject: [PATCH 3/3] Fix site vcs deployment bug too --- src/Appwrite/Platform/Modules/Compute/Base.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Appwrite/Platform/Modules/Compute/Base.php b/src/Appwrite/Platform/Modules/Compute/Base.php index ad467b5488..45c839df3b 100644 --- a/src/Appwrite/Platform/Modules/Compute/Base.php +++ b/src/Appwrite/Platform/Modules/Compute/Base.php @@ -205,6 +205,12 @@ class Base extends Action } catch (\Throwable $error) { // Ignore; deployment can continue } + } else { + // Fallback till we have tag support here + // Goal is to set providerBranch, so build worker knows what to clone as base + // Without this, clone command would be cloning empty branch, and failing + $providerBranch = $site->getAttribute('providerBranch', 'main'); + $branchUrl = "https://github.com/$owner/$repositoryName/tree/$providerBranch"; } $repositoryUrl = "https://github.com/$owner/$repositoryName";