docs: drop the upstream remote from CONTRIBUTING

profile_sync.py finds and fetches the project's main by itself. The
documented --base upstream/main failed in any clone without that remote,
where the same command without --base passes.
This commit is contained in:
Abdessamad Derraz committed 2026-11-06 03:28:36 +01:00
1 parent 4581a54882
commit f1f2254be8
5 files changed
+16 -13

No files matched your search

+2 -1
View File
@@ -75,7 +75,8 @@ class BeforeOpeningAPullRequest(unittest.TestCase):
# CI holds added profiles to their upstream, not edited ones: --changed
# failed a contributor on refs they never wrote.
self.assertIn("profile_sync.py --added --base", workflow)
self.assertIn("profile_sync.py --added --base upstream/main --strict", block)
self.assertIn("profile_sync.py --added --strict", block)
self.assertNotIn("upstream/main", section)
self.assertNotIn("--changed --strict", block)
def test_it_names_the_site_build_and_the_packages_ci_runs(self):
+5 -1
View File
@@ -6017,7 +6017,11 @@ class TestBranchCheckIsWired(unittest.TestCase):
import generate_readme # noqa: PLC0415
text = generate_readme.generate_contributing()
self.assertIn("profile_sync.py --added --base upstream/main --strict", text)
self.assertIn("profile_sync.py --added --strict", text)
# The default base is fetched by the tool: a documented upstream
# remote failed every clone that had origin alone.
self.assertNotIn("--base upstream/main", text)
self.assertNotIn("remote add upstream", text)
self.assertNotIn("--emulator NAME --strict", text)
workflow = (root / ".github" / "workflows" / "validate.yml").read_text()
self.assertIn("profile_sync.py --added --base", workflow)