Skip to content

Commit d3816ad

Browse files
authored
git-node: automatically remove temporary files (nodejs#429)
Refs: nodejs#425
1 parent 65fb311 commit d3816ad

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/landing_session.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -255,15 +255,12 @@ class LandingSession extends Session {
255255
willBeLanded = `${head}...${willBeLanded}`;
256256
}
257257

258+
this.cleanFiles();
259+
cli.log('Temporary files removed');
258260
cli.log('To finish landing:');
259261
cli.log(`1. Run \`git push ${upstream} ${branch}\``);
260262
const url = `https://github.com/${owner}/${repo}/pull/${prid}`;
261263
cli.log(`2. Post "Landed in ${willBeLanded}" in ${url}`);
262-
263-
const shouldClean = await cli.prompt('Clean up generated temporary files?');
264-
if (shouldClean) {
265-
this.cleanFiles();
266-
}
267264
}
268265

269266
async continue() {

0 commit comments

Comments
 (0)