Skip to content

Commit

Permalink
fix(@angular/cli): remove unneeded git HEAD update message
Browse files Browse the repository at this point in the history
Closes #16031
  • Loading branch information
clydin authored and vikerman committed Nov 6, 2019
1 parent f320fb2 commit 37a6d4d
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions packages/angular/cli/commands/update-impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,6 @@ export class UpdateCommand extends Command<UpdateCommandSchema> {
return true;
}

const startingGitSha = this.findCurrentGitSha();

migrations.sort((a, b) => semver.compare(a.version, b.version) || a.name.localeCompare(b.name));

this.logger.info(
Expand All @@ -175,13 +173,6 @@ export class UpdateCommand extends Command<UpdateCommandSchema> {

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;
Expand Down

0 comments on commit 37a6d4d

Please sign in to comment.