unset auth header in fetch

This commit is contained in:
msukkari 2025-09-27 17:00:02 -07:00
parent df8c72c3c5
commit 397c430c5a

View file

@ -78,6 +78,10 @@ export const fetchRepository = async (
"--prune",
"--progress"
]);
if (authHeader) {
await git.raw(["config", "--unset", "http.extraHeader", authHeader]);
}
} catch (error: unknown) {
const baseLog = `Failed to fetch repository: ${path}`;
if (env.SOURCEBOT_LOG_LEVEL !== "debug") {