Add git config options

This commit is contained in:
orosmatthew 2023-05-01 19:47:34 -04:00
parent 29eaecc764
commit a60e7b3559

View File

@ -72,6 +72,8 @@ export const actions = {
createdContest.teams.forEach(async (team) => { createdContest.teams.forEach(async (team) => {
fs.mkdirSync(join('temp', team.id.toString())); fs.mkdirSync(join('temp', team.id.toString()));
const git = simpleGit({ baseDir: join('temp', team.id.toString()) }); const git = simpleGit({ baseDir: join('temp', team.id.toString()) });
await git.addConfig('user.name', "Admin");
await git.addConfig('user.email', "noemail@example.com");
await git.init(); await git.init();
await git.checkoutLocalBranch('master'); await git.checkoutLocalBranch('master');
createdContest.problems.forEach((problem) => { createdContest.problems.forEach((problem) => {