From 37a6d4d99d2d24e768fb2ffadefd9380bc3eced6 Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Fri, 1 Nov 2019 20:55:38 -0400 Subject: [PATCH] fix(@angular/cli): remove unneeded git HEAD update message Closes #16031 --- packages/angular/cli/commands/update-impl.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/packages/angular/cli/commands/update-impl.ts b/packages/angular/cli/commands/update-impl.ts index 9ba90c90d9ef..5d84e1ae5a5e 100644 --- a/packages/angular/cli/commands/update-impl.ts +++ b/packages/angular/cli/commands/update-impl.ts @@ -162,8 +162,6 @@ export class UpdateCommand extends Command { return true; } - const startingGitSha = this.findCurrentGitSha(); - migrations.sort((a, b) => semver.compare(a.version, b.version) || a.name.localeCompare(b.name)); this.logger.info( @@ -175,13 +173,6 @@ export class UpdateCommand extends Command { const result = await this.executeSchematic(migration.collection.name, migration.name); if (!result.success) { - if (startingGitSha !== null) { - const currentGitSha = this.findCurrentGitSha(); - if (currentGitSha !== startingGitSha) { - this.logger.warn(`git HEAD was at ${startingGitSha} before migrations.`); - } - } - this.logger.error(`${colors.symbols.cross} Migration failed. See above for further details.\n`); return false;