make GitCommitTool accept git instance

This commit is contained in:
Alex Gleason committed 2025-09-14 17:27:12 -05:00
1 parent 1ab895bd59
commit bc009d444e
5 files changed
+12 -16

No files matched your search

-5
View File
@@ -57,15 +57,10 @@ export class GitCloneCommand implements GitSubcommand {
// Clone the repository
await this.git.clone({
http,
dir: targetPath,
url: repository,
singleBranch: options.singleBranch,
depth: options.depth,
corsProxy: (url.hostname === 'github.com' || url.hostname === 'gitlab.com')
? 'https://cors.isomorphic-git.org'
: undefined,
});
return createSuccessResult(`Cloning into '${targetDir}'...\ndone.\n`);