Refactor ProjectsManager.cloneProject to accept an options object

This commit is contained in:
Alex Gleason committed 2025-12-23 01:45:12 -06:00
1 parent b99c20c7f7
commit 8b8958f7c8
4 files changed
+26 -6

No files matched your search

+4 -1
View File
@@ -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://');