From 2d4de0aaa6f13df67006516b52f695fabe3ffc2c Mon Sep 17 00:00:00 2001 From: Jinjing <6427696+AmethystLiang@users.noreply.github.com> Date: Thu, 13 Aug 2026 09:58:30 -0700 Subject: [PATCH] Remove Windows batch file gitattributes workaround The -text whitespace=cr-at-eol rule preventing CRLF conversion for .cmd files is no longer needed. Allow batch files to use normalized line endings. --- .gitattributes | 3 --- tests/e2e/fixtures/golden-stub-agent/codex.cmd | 4 ++-- tests/e2e/fixtures/golden-stub-agent/golden-stub-agent.cmd | 4 ++-- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.gitattributes b/.gitattributes index 68936114729..565a0287996 100644 --- a/.gitattributes +++ b/.gitattributes @@ -12,6 +12,3 @@ /src/cli/bundled-skill-guides.ts text eol=lf # Bundled plugin trees are byte-hashed; CRLF checkout would break the pinned hash. /resources/plugins/** text eol=lf -# LF-only batch files hit the Windows parser's 512-byte boundary bug; -text keeps -# the stored bytes CRLF so no checkout or blob reader can see them as LF-only. -/tests/e2e/fixtures/golden-stub-agent/*.cmd -text whitespace=cr-at-eol diff --git a/tests/e2e/fixtures/golden-stub-agent/codex.cmd b/tests/e2e/fixtures/golden-stub-agent/codex.cmd index 430f2982bef..894a9216aa2 100644 --- a/tests/e2e/fixtures/golden-stub-agent/codex.cmd +++ b/tests/e2e/fixtures/golden-stub-agent/codex.cmd @@ -1,2 +1,2 @@ -@echo off -call "%~dp0golden-stub-agent.cmd" %* +@echo off +call "%~dp0golden-stub-agent.cmd" %* diff --git a/tests/e2e/fixtures/golden-stub-agent/golden-stub-agent.cmd b/tests/e2e/fixtures/golden-stub-agent/golden-stub-agent.cmd index 77ef2f9a04d..ccf5ced005e 100644 --- a/tests/e2e/fixtures/golden-stub-agent/golden-stub-agent.cmd +++ b/tests/e2e/fixtures/golden-stub-agent/golden-stub-agent.cmd @@ -1,2 +1,2 @@ -@echo off -node "%~dp0golden-stub-agent.js" %* +@echo off +node "%~dp0golden-stub-agent.js" %*