Files
oak-gpui/crates
Nils KochandMarshall Bowers 910531bc33 Check if additional git provider is not the original git provider (#26533)
Release Notes:

- N/A

Yesterday I worked on https://github.com/zed-industries/zed/pull/26482
and noticed afterwards that we have duplicated hosting providers if the
git remote host is "gitlab.com" and after the PR also for "github.com".
This is not a big problem, since the original providers are registered
first and therefore we first find a match with the original providers,
but I think we should address this nevertheless.

We initialize every hosting provider with the defaults here:

https://github.com/zed-industries/zed/blob/b008b2863ee015a9dc6ecdcd6dedbc708983f8b3/crates/git_hosting_providers/src/git_hosting_providers.rs#L15-L24

After that, we also register additional hosting providers:

https://github.com/zed-industries/zed/blob/b008b2863ee015a9dc6ecdcd6dedbc708983f8b3/crates/git_hosting_providers/src/git_hosting_providers.rs#L30-L43

If we do not check if the additional provider is not the original
provider, we will register the same provider twice.

---------

Co-authored-by: Marshall Bowers <git@maxdeviant.com>
2025-03-12 10:25:31 -04:00
..
2025-03-06 05:20:06 +00:00
2025-02-28 18:33:35 +01:00
2025-03-06 10:56:28 -07:00
2025-03-12 07:25:19 +00:00
2025-01-27 13:40:59 -05:00
2025-03-12 07:25:19 +00:00
2025-03-10 13:38:30 -06:00
2025-03-12 07:25:19 +00:00
2025-03-11 21:39:29 +00:00
2025-02-28 18:33:35 +01:00
2025-02-28 18:33:35 +01:00
2025-03-10 13:38:30 -06:00
2025-03-11 21:39:29 +00:00
2025-03-10 13:19:02 -07:00
2025-03-12 07:25:19 +00:00
2025-03-10 13:38:30 -06:00
2025-02-28 18:33:35 +01:00
2025-03-06 10:56:28 -07:00
2025-03-10 13:19:02 -07:00
2025-03-10 13:38:30 -06:00