Skip to content

Commit

Permalink
drop unused git config
Browse files Browse the repository at this point in the history
  • Loading branch information
nornagon committed Apr 4, 2024
1 parent 0096739 commit 6e6a7cf
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/operations/init-repo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
};

0 comments on commit 6e6a7cf

Please sign in to comment.