Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

config: get commit author email from `git config`

Abdullah Attaa744b3edfd26
diff --git a/commitlint.config.js b/commitlint.config.js
index 12cc32c47..7d79b080b 100644
--- a/commitlint.config.js
+++ b/commitlint.config.js
@@ -3,7 +3,7 @@
const { execSync } = require("child_process");
const { readFileSync } = require("fs");
-const authorEmail = execSync(`git show -s --format='%ae' HEAD`)
+const authorEmail = execSync(`git config --global --get user.email`)
.toString("utf-8")
.trim();
const authors = readFileSync("AUTHORS", "utf-8");