@@ -60,19 +60,7 @@ func TestRepoGitattributesInSyncWithConfig(t *testing.T) {
6060 // misleading "run merge-driver install" message).
6161 cfg , err := config .Load (filepath .Join (root , ".mdsmith.yml" ))
6262 require .NoError (t , err , "repository .mdsmith.yml must load and parse" )
63-
64- // During the transition to markdown-scoped merge-driver excludes
65- // (#750), the committed .gitattributes deliberately stays in the
66- // legacy bare form (`demo/** -merge`). The merge queue validates it
67- // with `mdsmith merge-driver ci-install` run by the *pinned* release
68- // baseline (see .github/actions/setup-mdsmith-pinned-version), which
69- // predates markdown scoping and expects that legacy render — so the
70- // committed file must match LegacyGlobs, not the branch's
71- // markdown-scoped GlobsFromConfig. Once the scoped format ships in a
72- // release and the pin is bumped, regenerate .gitattributes with
73- // `mdsmith merge-driver install` and switch this assertion to
74- // GlobsFromConfig. See docs/development/adopt-new-directive-syntax.md.
75- expected := githooks .LegacyGlobs (cfg )
63+ expected , _ := githooks .GlobsFromConfig (cfg )
7664
7765 data , err := os .ReadFile (filepath .Join (root , ".gitattributes" ))
7866 require .NoError (t , err , "repository .gitattributes must exist" )
@@ -82,9 +70,8 @@ func TestRepoGitattributesInSyncWithConfig(t *testing.T) {
8270 "committed .gitattributes has no mdsmith merge-driver managed block" )
8371
8472 assert .True (t , githooks .GlobsEqual (installed , expected ),
85- "committed .gitattributes is out of sync with .mdsmith.yml's legacy " +
86- "(pinned-baseline) render — keep it in the bare form the pinned " +
87- "merge-queue binary expects until the pin is bumped.\n " +
88- " committed: include=%v exclude=%v\n expected: include=%v exclude=%v" ,
73+ "committed .gitattributes is out of sync with .mdsmith.yml — run " +
74+ "`mdsmith merge-driver install` (or `mdsmith fix`) and commit the " +
75+ "result.\n committed: include=%v exclude=%v\n expected: include=%v exclude=%v" ,
8976 installed .Include , installed .Exclude , expected .Include , expected .Exclude )
9077}
0 commit comments