Sync tags when adopting repos (#26816) (#26834)

Backport #26816 by @Zettat123

Fixes #26138

Sync the tags into database when adopting repos

Co-authored-by: Zettat123 <zettat123@gmail.com>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
pull/26810/head^2
Giteabot 1 year ago committed by GitHub
parent 41bae29f84
commit 302c03c4a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      services/repository/adopt.go

@ -186,6 +186,10 @@ func adoptRepository(ctx context.Context, repoPath string, u *user_model.User, r
return fmt.Errorf("updateRepository: %w", err)
}
if err = repo_module.SyncReleasesWithTags(repo, gitRepo); err != nil {
return fmt.Errorf("SyncReleasesWithTags: %w", err)
}
return nil
}

Loading…
Cancel
Save