mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-16 22:35:34 +00:00
unset auth header in fetch
This commit is contained in:
parent
df8c72c3c5
commit
397c430c5a
1 changed files with 4 additions and 0 deletions
|
|
@ -78,6 +78,10 @@ export const fetchRepository = async (
|
||||||
"--prune",
|
"--prune",
|
||||||
"--progress"
|
"--progress"
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
if (authHeader) {
|
||||||
|
await git.raw(["config", "--unset", "http.extraHeader", authHeader]);
|
||||||
|
}
|
||||||
} catch (error: unknown) {
|
} catch (error: unknown) {
|
||||||
const baseLog = `Failed to fetch repository: ${path}`;
|
const baseLog = `Failed to fetch repository: ${path}`;
|
||||||
if (env.SOURCEBOT_LOG_LEVEL !== "debug") {
|
if (env.SOURCEBOT_LOG_LEVEL !== "debug") {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue