Skip to content

Commit 13ec68a

Browse files
committed
🤖 fix: make createWorkspace test robust against global git config
Generated with mux tests/ipcMain/createWorkspace.test.ts: Use example.com URL instead of github.com to avoid interference from global git url.insteadOf configuration (which rewrites https://github.com/ to git@github.com:).
1 parent aef86ac commit 13ec68a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/ipcMain/createWorkspace.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,8 @@ exit 1
818818

819819
try {
820820
// Set up a real origin remote in the test repo
821-
const originUrl = "https://github.com/example/test-repo.git";
821+
// Use example.com to avoid global git config rewrites (e.g. insteadOf https://github.com/)
822+
const originUrl = "https://example.com/example/test-repo.git";
822823
await execAsync(`git remote add origin ${originUrl}`, {
823824
cwd: tempGitRepo,
824825
});

0 commit comments

Comments
 (0)