mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
Git proxy origins are configured separately from git credentials
This commit is contained in:
15 files changed
+35
-47
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user