mirror: fix rename

This commit is contained in:
André Roth committed 2026-11-01 02:30:11 +01:00
1 parent add8d82b44
commit cd365b2899
2 files changed
+73

No files matched your search

+1
View File
@@ -597,6 +597,7 @@ func apiMirrorsUpdate(c *gin.Context) {
if err == nil {
return &task.ProcessReturnValue{Code: http.StatusConflict, Value: nil}, fmt.Errorf("unable to rename: mirror %s already exists", b.Name)
}
remote.Name = b.Name
}
downloader := context.NewDownloader(out)