mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 08:37:22 +00:00
make GitCommitTool accept git instance
This commit is contained in:
5 files changed
+12
-16
No files matched your search
@@ -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`);
|
||||
|
||||
Reference in new issue
Block a user