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 98b1400aba..b014064119 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,