Affected Version: 2.7-rc2-507-g1e7090b
What steps will reproduce the problem?
1. Have foo/bar/baz.git as a submodule of foo/bar.git, subscribed to auto-update
2. Create bar.git repository
3. submodule_subscriptions updates to new repository, breaking your subscription
What is the expected output? What do you see instead?
The repo should remain subscribed as-is, not get confused by the new repo.
Please provide any additional information below.
Before the new repo:
gerrit> select * from submodule_subscriptions where submodule_project_name like '%VisualEditor%';
submodule_project_name | submodule_branch_name | super_project_project_name | super_project_branch_name | submodule_path
-----------------------+-----------------------+----------------------------+---------------------------+---------------
mediawiki/extensions/VisualEditor | refs/heads/master | mediawiki/extensions | refs/heads/master | VisualEditor
(1 row; 2 ms)
After the new repo
gerrit> select * from submodule_subscriptions where submodule_project_name like '%VisualEditor%';
submodule_project_name | submodule_branch_name | super_project_project_name | super_project_branch_name | submodule_path
-----------------------+-----------------------+----------------------------+---------------------------+---------------
VisualEditor | refs/heads/master | mediawiki/extensions | refs/heads/master | VisualEditor
(1 row; 2 ms)