Skip to content

Commit

Permalink
Sync tags when adopting repos (go-gitea#26816)
Browse files Browse the repository at this point in the history
Fixes go-gitea#26138

Sync the tags into database when adopting repos

---------

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
  • Loading branch information
3 people authored and GiteaBot committed Aug 31, 2023
1 parent 41bae29 commit b9ff369
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 b9ff369

Please sign in to comment.