Fixes T6880. If matching commits have no visible/loadable repository, we shouldn't keep going forward in the loop.
mbishopim3 fabe btrahan
- Maniphest Tasks
- T6880: "Attempting to access attached data on PhabricatorRepositoryCommit (via getRepository())" error when creating or accessing diffs
- Restricted Diffusion Commit
rPd4f992d2ed09: Continue after rejecting commits from a commit query
Havne't built a repro locally yet so not 100% sure this fixes it.
I've reproduced it locally and this fixes it. Before the patch these were two separate foreaches.
We could still link the commit (like we do with a repo that is not accessible) and make it show "restricted" instead.
With this patch the commits would simply ne be linked at all.