Skip to content

Commit 397c430

Browse files
committed
unset auth header in fetch
1 parent df8c72c commit 397c430

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/backend/src/git.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ export const fetchRepository = async (
7878
"--prune",
7979
"--progress"
8080
]);
81+
82+
if (authHeader) {
83+
await git.raw(["config", "--unset", "http.extraHeader", authHeader]);
84+
}
8185
} catch (error: unknown) {
8286
const baseLog = `Failed to fetch repository: ${path}`;
8387
if (env.SOURCEBOT_LOG_LEVEL !== "debug") {

0 commit comments

Comments
 (0)