From d2822a8883fc30791264a25124e5ae2708b88a8b Mon Sep 17 00:00:00 2001 From: Ishan Date: Fri, 3 Apr 2026 03:59:30 +0530 Subject: [PATCH] fix: use explicit refspec for push in worktrees with slashed branch names (#1684) Co-authored-by: Julius Marminge --- apps/server/src/git/Layers/GitCore.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/server/src/git/Layers/GitCore.ts b/apps/server/src/git/Layers/GitCore.ts index 98b1400aba19f73f99f9c4e9f0ad0df070cb6e61..b0140641190a37a779390f37386dcf898f47678e 100644 --- a/apps/server/src/git/Layers/GitCore.ts +++ b/apps/server/src/git/Layers/GitCore.ts @@ -1423,7 +1423,7 @@ export const makeGitCore = Effect.fn("makeGitCore")(function* (options?: { "push", "-u", publishRemoteName, - branch, + `HEAD:refs/heads/${branch}`, ]); return { status: "pushed" as const, -- 2.54.0