The best way to control Claude Code, Codex and more from any computer or phone
fix: use explicit refspec for push in worktrees with slashed branch names (#1684)
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Ishan committed
Apr 3, 2026 at 03:59 UTC
d2822a8883fc30791264a25124e5ae2708b88a8b
1 file changed
+1
-1
apps/server/src/git/Layers/GitCore.ts
+1
-1
@@ -1423,7 +1423,7 @@ export const makeGitCore = Effect.fn("makeGitCore")(function* (options?: {
1423
"push",
1424
"-u",
1425
publishRemoteName,
1426
- branch,
1426
+ `HEAD:refs/heads/${branch}`,
1427
]);
1428
return {
1429
status: "pushed" as const,