Git proxy origins are configured separately from git credentials

This commit is contained in:
Alex Gleason committed 2025-12-28 16:19:52 -06:00
1 parent f5036b8b56
commit b60d11186b
15 files changed
+35 -47

No files matched your search

-8
View File
@@ -64,7 +64,6 @@ const gitCredentialSchema = z.object({
origin: z.string(),
username: z.string(),
password: z.string(),
proxy: z.boolean().optional(),
});
// Old format (map of origins to credentials)
@@ -284,13 +283,6 @@ export async function readGitSettings(fs: JSRuntimeFS, configPath = '/config'):
credentials = convertCredentialsToNewFormat(parsed.credentials);
}
// Set default proxy settings if missing
for (const cred of credentials) {
if (!('proxy' in cred)) {
cred.proxy = ['https://github.com', 'https://gitlab.com'].includes(cred.origin);
}
}
return {
...parsed,
credentials,