Skip to content

Commit 37a6d4d

Browse files
clydinvikerman
authored andcommitted
fix(@angular/cli): remove unneeded git HEAD update message
Closes #16031
1 parent f320fb2 commit 37a6d4d

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

packages/angular/cli/commands/update-impl.ts

-9
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,6 @@ export class UpdateCommand extends Command<UpdateCommandSchema> {
162162
return true;
163163
}
164164

165-
const startingGitSha = this.findCurrentGitSha();
166-
167165
migrations.sort((a, b) => semver.compare(a.version, b.version) || a.name.localeCompare(b.name));
168166

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

176174
const result = await this.executeSchematic(migration.collection.name, migration.name);
177175
if (!result.success) {
178-
if (startingGitSha !== null) {
179-
const currentGitSha = this.findCurrentGitSha();
180-
if (currentGitSha !== startingGitSha) {
181-
this.logger.warn(`git HEAD was at ${startingGitSha} before migrations.`);
182-
}
183-
}
184-
185176
this.logger.error(`${colors.symbols.cross} Migration failed. See above for further details.\n`);
186177

187178
return false;

0 commit comments

Comments
 (0)