Skip to content

Commit 16372cb

Browse files
committed
bugfix: respect localpath when cloning new repos
1 parent b912bd7 commit 16372cb

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

electron/shared/channels.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,6 @@ export interface GitHubRef {
808808
export interface GitCloneRequest {
809809
url: string
810810
localPath?: string
811-
local_path?: string
812811
ref?: string
813812
repo_path?: string
814813
credentials?: { token: string }

web/src/components/mdx/GitClone/hooks/useGitClone.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export function useGitClone({ id, githubAuthId, gitAuthId }: UseGitCloneOptions)
143143
const body: Record<string, unknown> = { url }
144144
if (ref) body.ref = ref
145145
if (repoPath) body.repo_path = repoPath
146-
if (localPath) body.local_path = localPath
146+
if (localPath) body.localPath = localPath
147147
if (usePty !== undefined) body.use_pty = usePty
148148
if (force) body.force = true
149149
if (authProvider) body.provider = authProvider

0 commit comments

Comments
 (0)