From 9986f4d1a3878c748799e37746915348476cca3e Mon Sep 17 00:00:00 2001 From: Mark Wylde Date: Fri, 30 May 2025 20:25:16 +0100 Subject: [PATCH] Attempt to make this work --- src/github/operations/branch.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/github/operations/branch.ts b/src/github/operations/branch.ts index 8a12941..9bfd49c 100644 --- a/src/github/operations/branch.ts +++ b/src/github/operations/branch.ts @@ -94,11 +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 + // For Gitea, use heads/ prefix like GitHub const sourceBranchRef = await octokits.rest.git.getRef({ owner, repo, - ref: sourceBranch, + ref: `heads/${sourceBranch}`, }); const currentSHA = sourceBranchRef.data.object.sha;