mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 08:37:22 +00:00
Refactor ProjectsManager.cloneProject to accept an options object
This commit is contained in:
4 files changed
+26
-6
No files matched your search
+4
-1
@@ -156,7 +156,10 @@ export default function Clone() {
|
||||
const repoName = await extractRepoName(targetUrl);
|
||||
|
||||
// Clone the repository (Git class handles both regular Git URLs and Nostr URIs)
|
||||
const project = await projectsManager.cloneProject(repoName, targetUrl.trim());
|
||||
const project = await projectsManager.cloneProject({
|
||||
name: repoName,
|
||||
repoUrl: targetUrl.trim(),
|
||||
});
|
||||
|
||||
// Determine success message based on URL type
|
||||
const isNostrUri = targetUrl.startsWith('nostr://');
|
||||
|
||||
Reference in new issue
Block a user