Fix vercel build

This commit is contained in:
Colin McDonnell
2026-01-13 08:11:59 +00:00
committed by pullfrog[bot]
parent 84df6bbfb0
commit 280bb7ef15
4 changed files with 55 additions and 21 deletions
+23 -9
View File
@@ -138319,21 +138319,35 @@ function setupGitConfig() {
const repoDir = process.cwd();
log.info("\xBB setting up git configuration...");
try {
execSync2('git config --local user.email "team@pullfrog.com"', {
cwd: repoDir,
stdio: "pipe"
});
execSync2('git config --local user.name "pullfrog"', {
cwd: repoDir,
stdio: "pipe"
});
let currentEmail = "";
try {
currentEmail = execSync2("git config user.email", {
cwd: repoDir,
stdio: "pipe",
encoding: "utf-8"
}).trim();
} catch {
}
const shouldSetDefaults = !currentEmail || currentEmail === "github-actions[bot]@users.noreply.github.com";
if (shouldSetDefaults) {
execSync2('git config --local user.email "team@pullfrog.com"', {
cwd: repoDir,
stdio: "pipe"
});
execSync2('git config --local user.name "pullfrog"', {
cwd: repoDir,
stdio: "pipe"
});
log.debug("\xBB git user configured (using defaults)");
} else {
log.debug(`\xBB git user already configured (${currentEmail}), skipping`);
}
if (!process.env.GITHUB_ACTIONS) {
execSync2('git config --local credential.helper ""', {
cwd: repoDir,
stdio: "pipe"
});
}
log.debug("\xBB git configuration set successfully (scoped to repo)");
} catch (error50) {
log.warning(
`Failed to set git config: ${error50 instanceof Error ? error50.message : String(error50)}`