Skip to content

Commit

Permalink
git-node: automatically remove temporary files (nodejs#429)
Browse files Browse the repository at this point in the history
  • Loading branch information
BridgeAR authored Jun 2, 2020
1 parent 65fb311 commit d3816ad
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 d3816ad

Please sign in to comment.