Skip to content

Commit 302c03c

Browse files
GiteaBotZettat123silverwindKN4CK3R
authored
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 <[email protected]> Co-authored-by: silverwind <[email protected]> Co-authored-by: KN4CK3R <[email protected]>
1 parent 41bae29 commit 302c03c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

services/repository/adopt.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,10 @@ func adoptRepository(ctx context.Context, repoPath string, u *user_model.User, r
186186
return fmt.Errorf("updateRepository: %w", err)
187187
}
188188

189+
if err = repo_module.SyncReleasesWithTags(repo, gitRepo); err != nil {
190+
return fmt.Errorf("SyncReleasesWithTags: %w", err)
191+
}
192+
189193
return nil
190194
}
191195

0 commit comments

Comments
 (0)