mirror of
https://github.com/go-gitea/gitea
synced 2024-06-03 03:46:51 +02:00
Temp disable fast tag syncing for mirrors
This commit is contained in:
parent
0b50deb8c0
commit
bcb8866b67
|
@ -292,9 +292,9 @@ func SyncReleasesWithTags(repo *repo_model.Repository, gitRepo *git.Repository)
|
||||||
|
|
||||||
// optimized procedure for pull-mirrors which saves a lot of time (in
|
// optimized procedure for pull-mirrors which saves a lot of time (in
|
||||||
// particular for repos with many tags).
|
// particular for repos with many tags).
|
||||||
if repo.IsMirror {
|
// if repo.IsMirror {
|
||||||
return pullMirrorReleaseSync(repo, gitRepo)
|
// return pullMirrorReleaseSync(repo, gitRepo)
|
||||||
}
|
// }
|
||||||
|
|
||||||
existingRelTags := make(container.Set[string])
|
existingRelTags := make(container.Set[string])
|
||||||
opts := repo_model.FindReleasesOptions{
|
opts := repo_model.FindReleasesOptions{
|
||||||
|
|
|
@ -314,9 +314,9 @@ func migrateRepository(doer *user_model.User, downloader base.Downloader, upload
|
||||||
}
|
}
|
||||||
|
|
||||||
// Once all releases (if any) are inserted, sync any remaining non-release tags
|
// Once all releases (if any) are inserted, sync any remaining non-release tags
|
||||||
// if err = uploader.SyncTags(); err != nil {
|
if err = uploader.SyncTags(); err != nil {
|
||||||
// return err
|
return err
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -611,9 +611,9 @@ func syncRepository(downloader base.Downloader, uploader base.Uploader, opts bas
|
||||||
}
|
}
|
||||||
|
|
||||||
// Once all releases (if any) are inserted, sync any remaining non-release tags
|
// Once all releases (if any) are inserted, sync any remaining non-release tags
|
||||||
// if err = uploader.SyncTags(); err != nil {
|
if err = uploader.SyncTags(); err != nil {
|
||||||
// return err
|
return err
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user