Skip to content

Commit

Permalink
fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
millotp committed Jun 8, 2022
1 parent f4304d9 commit f3d150d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/ci/husky/pre-commit.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,12 @@ function getPatterns() {

async function preCommit() {
// when merging, we want to stage all the files
if ((await run('git merge HEAD')) !== 'Already up to date.') {
return;
try {
await run('git merge HEAD');
} catch (e) {
if (e.exitCode === 128) {
return;
}
}

const stagedFiles = (
Expand Down

0 comments on commit f3d150d

Please sign in to comment.