From 264c13f705637fc817e3d216ed80183697f04d50 Mon Sep 17 00:00:00 2001 From: Jeremy Rose Date: Thu, 4 Apr 2024 10:05:22 -0700 Subject: [PATCH] drop unused git config --- src/operations/init-repo.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/operations/init-repo.ts b/src/operations/init-repo.ts index 4a6740a..46a2261 100644 --- a/src/operations/init-repo.ts +++ b/src/operations/init-repo.ts @@ -65,15 +65,5 @@ export const initRepo = async ({ await git.clone(cacheDir, '.'); }); - const pushUrl = githubUrl({ slug, accessToken }); - await git.remote(['set-url', 'origin', pushUrl]); - await git.remote(['set-url', '--push', 'origin', pushUrl]); - - const config = await fs.readFile('./config.yml', 'utf8'); - const { tropEmail, tropName } = parse(config); - await git.addConfig('user.email', tropEmail || 'trop@example.com'); - await git.addConfig('user.name', tropName || 'Trop Bot'); - - await git.addConfig('commit.gpgsign', 'false'); return { dir }; };