Skip to content

Commit 98f2bf2

Browse files
Zettat123silverwindKN4CK3R
authored
Sync tags when adopting repos (#26816)
Fixes #26138 Sync the tags into database when adopting repos --------- Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
1 parent 4544b2a commit 98f2bf2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

services/repository/adopt.go

+4
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,10 @@ func adoptRepository(ctx context.Context, repoPath string, u *user_model.User, r
195195
return fmt.Errorf("updateRepository: %w", err)
196196
}
197197

198+
if err = repo_module.SyncReleasesWithTags(repo, gitRepo); err != nil {
199+
return fmt.Errorf("SyncReleasesWithTags: %w", err)
200+
}
201+
198202
return nil
199203
}
200204

0 commit comments

Comments
 (0)