From c6355b4de28934ab7e42f9b81ef49ec7784a2abb Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 14 Aug 2025 21:26:58 -0700 Subject: [PATCH] fix: remote --- src/commands/remote.ts | 1 - src/util/git.ts | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/remote.ts b/src/commands/remote.ts index 9cf4bb41d..26dc64b77 100644 --- a/src/commands/remote.ts +++ b/src/commands/remote.ts @@ -49,7 +49,6 @@ export async function remote( const accessToken = getAccessToken(authConfig); const requestBody: any = { - cUserId: authConfig.userId, repoUrl: getRepoUrl(), name: `devbox-${Date.now()}`, prompt: prompt, diff --git a/src/util/git.ts b/src/util/git.ts index b80b9e571..659a6db0f 100644 --- a/src/util/git.ts +++ b/src/util/git.ts @@ -83,5 +83,6 @@ export function getRepoUrl(): string { // Try to get the remote URL from git const remoteUrl = getGitRemoteUrl(); - return remoteUrl || process.cwd(); + const url = remoteUrl || process.cwd(); + return url.endsWith(".git") ? url.slice(0, -4) : url; }