fix: remote
This commit is contained in:
parent
9b8579be3b
commit
c6355b4de2
2 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue