Skip to content

Commit 02da0f0

Browse files
authored
Remove empty commit check (#3155)
1 parent b9796f5 commit 02da0f0

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

tools/gitHooks/precommit.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -80,17 +80,6 @@ $ git stash pop
8080
// Validate License headers exist
8181
await doLicense(changedFiles);
8282

83-
// Diff staged changes against last commit. Don't do an empty commit.
84-
const postDiff = await git.diff(['--cached']);
85-
if (!postDiff) {
86-
console.error(chalk`
87-
{red Staged files are identical to previous commit after running formatting
88-
steps. Skipping commit.}
89-
90-
`);
91-
return process.exit(1);
92-
}
93-
9483
console.log(chalk`
9584
Pre-Push Validation Succeeded
9685

0 commit comments

Comments
 (0)