Skip to content

Commit

Permalink
try fixing the pre-push hook
Browse files Browse the repository at this point in the history
  • Loading branch information
delanni committed Dec 15, 2023
1 parent 8c0815b commit e1bee3c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/pre-push
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ if (lines[0].startsWith('/* generated */')) {
fs.writeFileSync('version.js', lines.join('\n'));
// amend the commit
cp.execSync('git add version.js');
cp.execSync('git commit --amend --no-edit');
cp.execSync('git commit --amend -C HEAD --no-edit');
console.log("Updated version.js");
} else {
console.warn("version.js doesn't look not generated, review the pre-push script or the version.js file")
console.warn("version.js doesn't look not generated, review the pre-push script or the version.js file");
}

process.exit(0);

0 comments on commit e1bee3c

Please sign in to comment.