From 0d23f2b668f70f5d7629952fbf1bc4a18b3ddd44 Mon Sep 17 00:00:00 2001 From: jiaojiaodubai <63148861+jiaojiaodubai@users.noreply.github.com> Date: Thu, 18 Apr 2024 11:59:09 +0800 Subject: [PATCH] update script --- data/updateJSON.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/updateJSON.js b/data/updateJSON.js index c9cb2c8..697a3f1 100644 --- a/data/updateJSON.js +++ b/data/updateJSON.js @@ -7,7 +7,7 @@ const fs = require('fs'); const excepts = ['BibTeX.js', 'RefWorks Tagged.js']; async function getRecentCommits(filepath, count = 3) { - const cmd = `git log -n ${count} --pretty=format:"{\\"author\\": \\"%an\\", \\"date\\": \\"%ci\\", \\"message\\": \\"%s\\"}" -- ${filepath}`; + const cmd = `git log -n ${count} --pretty=format:"{\\"author\\": \\"%an\\", \\"date\\": \\"%ci\\", \\"message\\": \\"%s\\"}" -- "${filepath}"`; return new Promise((resolve, reject) => { exec(cmd, (error, stdout, _stderr) => { if (error) {