mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-09-10 03:39:01 +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
|
returnPath = newPath
|
||||||
if subPath == "" {
|
if subPath == "" {
|
||||||
newName := filepath.Base(newPath)
|
newName := filepath.Base(newPath)
|
||||||
err := editRepo(repo.ID, newName, "Changed library name", "")
|
err := editRepo(vInfo.RepoID, newName, "Changed library name", "")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("falied to rename repo %s.\n", newName)
|
log.Printf("falied to rename repo %s.\n", newName)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user