diff --git a/web/src/routes/admin/contests/create/+page.server.ts b/web/src/routes/admin/contests/create/+page.server.ts index b8460e3..c8c453d 100644 --- a/web/src/routes/admin/contests/create/+page.server.ts +++ b/web/src/routes/admin/contests/create/+page.server.ts @@ -72,8 +72,6 @@ export const actions = { createdContest.teams.forEach(async (team) => { fs.mkdirSync(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.checkoutLocalBranch('master'); createdContest.problems.forEach((problem) => { @@ -83,7 +81,7 @@ export const actions = { ); }); await git.add('.'); - await git.commit('Initial'); + await git.commit('Initial', { '--author': 'Admin <>' }); await git.push( 'http://localhost:7006/' + createdContest.id.toString() + '/' + team.id.toString(), 'master'