Skip to content

Commit b9ff369

Browse files
Zettat123silverwindKN4CK3R
authored andcommitted
Sync tags when adopting repos (go-gitea#26816)
Fixes go-gitea#26138 Sync the tags into database when adopting repos --------- Co-authored-by: silverwind <[email protected]> Co-authored-by: KN4CK3R <[email protected]>
1 parent 41bae29 commit b9ff369

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)