Skip to content

Commit

Permalink
git-node: automatically remove temporary files (#429)
Browse files Browse the repository at this point in the history
  • Loading branch information
renawolford6 committed Jun 2, 2020
1 parent 2f01aaa commit 99f86d6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/landing_session.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,15 +255,12 @@ class LandingSession extends Session {
willBeLanded = `${head}...${willBeLanded}`;
}

this.cleanFiles();
cli.log('Temporary files removed');
cli.log('To finish landing:');
cli.log(`1. Run \`git push ${upstream} ${branch}\``);
const url = `https://github.com/${owner}/${repo}/pull/${prid}`;
cli.log(`2. Post "Landed in ${willBeLanded}" in ${url}`);

const shouldClean = await cli.prompt('Clean up generated temporary files?');
if (shouldClean) {
this.cleanFiles();
}
}

async continue() {
Expand Down

0 comments on commit 99f86d6

Please sign in to comment.