Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix: keep rebase-push fixtures on LF under Git for Windows (#13301)
[._.]/ Adam Eivyacd69c22fa0c
diff --git a/server/services/git.rebasePush.test.js b/server/services/git.rebasePush.test.jsindex 68eef85561..ab763b4086 100644--- a/server/services/git.rebasePush.test.js+++ b/server/services/git.rebasePush.test.js@@ -19,14 +19,19 @@ describe.skipIf(SKIP_HEAVY_INTEGRATION)('rebase and push the default branch', ()await execGit(['commit', '-m', `Update ${file}`], repo);};const head = async repo => (await execGit(['rev-parse', 'HEAD'], repo)).stdout.trim();+ // Git for Windows checks LF blobs out as CRLF when core.autocrlf is true.+ // These assertions pin the bytes the test wrote, so the sandbox must not convert them.+ const pinNewlines = repo => execGit(['config', 'core.autocrlf', 'false'], repo);const prepare = async ({ conflict = false } = {}) => {sandbox = await makeGitSandbox({ origin: true });const { repo, scratch, origin } = sandbox;+ await pinNewlines(repo);const other = join(scratch, 'other');await execGit(['clone', origin, other], scratch);await execGit(['config', 'user.email', '[email protected]'], other);await execGit(['config', 'user.name', 'Example Agent'], other);await execGit(['config', 'commit.gpgsign', 'false'], other);+ await pinNewlines(other);await commitFile(other, conflict ? 'initial.txt' : 'remote.txt', 'remote change\n');await execGit(['push', 'origin', 'HEAD:main'], other);await commitFile(repo, conflict ? 'initial.txt' : 'local.txt', 'local change\n');@@ -48,6 +53,7 @@ describe.skipIf(SKIP_HEAVY_INTEGRATION)('rebase and push the default branch', ()it('pushes an ahead-only default branch', async () => {sandbox = await makeGitSandbox({ origin: true });+ await pinNewlines(sandbox.repo);await commitFile(sandbox.repo, 'local.txt', 'local change\n');expect(await rebaseAndPushDefaultBranch(sandbox.repo)).toMatchObject({ success: true, pushed: true });expect(await head(sandbox.origin)).toBe(await head(sandbox.repo));