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";