From 406208cf7a169ef412e05e626ce5e6f90168f13e Mon Sep 17 00:00:00 2001 From: Mark Wylde Date: Fri, 30 May 2025 20:20:51 +0100 Subject: [PATCH] Attempt to make this work --- src/github/operations/branch.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/github/operations/branch.ts b/src/github/operations/branch.ts index 3379648..8a12941 100644 --- a/src/github/operations/branch.ts +++ b/src/github/operations/branch.ts @@ -94,10 +94,11 @@ export async function setupBranch( try { // Get the SHA of the source branch + // For Gitea, use just the branch name instead of heads/ prefix const sourceBranchRef = await octokits.rest.git.getRef({ owner, repo, - ref: `heads/${sourceBranch}`, + ref: sourceBranch, }); const currentSHA = sourceBranchRef.data.object.sha;