Prefill discovered SVN username

This commit is contained in:
lwt
2026-06-18 14:42:06 +08:00
parent 11b2504ce5
commit 7058c5f599
+1
View File
@@ -365,6 +365,7 @@ function repoFromDiscovered(discovered, existing = {}) {
name: discovered.name, name: discovered.name,
url: discovered.url, url: discovered.url,
checkoutPath: existing.checkoutPath || discovered.id, checkoutPath: existing.checkoutPath || discovered.id,
username: existing.username || (discovered.authUsers?.length === 1 ? discovered.authUsers[0] : ""),
source: "server", source: "server",
serverRepositoryRoot: discovered.rootPath, serverRepositoryRoot: discovered.rootPath,
serverRepositoryPath: discovered.repositoryPath, serverRepositoryPath: discovered.repositoryPath,