mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-16 11:47:54 +01:00
config: get commit author email from git config
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user