mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-13 04:45:19 +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",
|
||||
"--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") {
|
||||
|
|
|
|||
Loading…
Reference in a new issue