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; }