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:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user