1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-09 11:18:54 +00:00

Fix edit origin repo error (#592)

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
This commit is contained in:
feiniks
2023-01-29 15:05:59 +08:00
committed by GitHub
parent 47efb16c92
commit 88438dd0fe

View File

@@ -272,7 +272,7 @@ func handleMissingVirtualRepo(repo *repomgr.Repo, head *commitmgr.Commit, vInfo
returnPath = newPath
if subPath == "" {
newName := filepath.Base(newPath)
err := editRepo(repo.ID, newName, "Changed library name", "")
err := editRepo(vInfo.RepoID, newName, "Changed library name", "")
if err != nil {
log.Printf("falied to rename repo %s.\n", newName)
}