fix: remote

This commit is contained in:
Nate 2025-08-14 21:26:58 -07:00
parent 9b8579be3b
commit c6355b4de2
2 changed files with 2 additions and 2 deletions

View file

@ -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,

View file

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