Skip to content

Commit

Permalink
Sync tags when adopting repos (#26816) (#26834)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
4 people authored Aug 31, 2023
1 parent 41bae29 commit 302c03c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions services/repository/adopt.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 302c03c

Please sign in to comment.