Skip to content

Graphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.

test(incremental): preserve CRLF bytes in git fixtures

Lum1104e7b1bc4419b5
diff --git a/tests/skill/understand/test_prepare_incremental.test.mjs b/tests/skill/understand/test_prepare_incremental.test.mjs
index f8684996..67a929eb 100644
--- a/tests/skill/understand/test_prepare_incremental.test.mjs
+++ b/tests/skill/understand/test_prepare_incremental.test.mjs
@@ -66,6 +66,9 @@ function setupRepository(files) {
git(root, ['init', '-b', 'main']);
git(root, ['config', 'user.email', '[email protected]']);
git(root, ['config', 'user.name', 'Test User']);
+ // Keep fixture bytes literal on Windows so the LF -> CRLF regression
+ // actually creates a commit instead of being normalized back to LF.
+ git(root, ['config', 'core.autocrlf', 'false']);
writeProjectFile(root, '.gitignore', '.ua/\n.understand-anything/\n');
for (const [path, content] of Object.entries(files)) writeProjectFile(root, path, content);
const baseCommit = commit(root, 'baseline');