dir: Pass summary and collection_id to fetch_remote_repo_metadata()

All callers need to get this anyway, so lets only do it once.

Closes: #1575
Approved by: alexlarsson
This commit is contained in:
Internal Server Error - Gitea: Git with a cup of tea
500 Internal Server Error

Gitea Version: 1.28.0+dev-477-g8b6ad49a5f