From e536a8367b4c910237ef708789abbfe5d8cd9a24 Mon Sep 17 00:00:00 2001 From: Alex Szabo Date: Fri, 15 Dec 2023 23:50:44 +0100 Subject: [PATCH] try fixing the pre-push hook --- scripts/pre-push | 6 ++++-- version.js | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/pre-push b/scripts/pre-push index 7fb7ae5..c89632e 100755 --- a/scripts/pre-push +++ b/scripts/pre-push @@ -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); \ No newline at end of file diff --git a/version.js b/version.js index 55379d2..5a2b440 100644 --- a/version.js +++ b/version.js @@ -1,3 +1,3 @@ -/* generated */ const version = { "date": "2023-12-15T22:45:26.499Z", "commit": "fix: fix bad export" } +/* generated */ const version = { "date": "2023-12-15T22:50:47.894Z", "commit": "try fixing the pre-push hook" } console.log("VERSION", version);