Skip to content

Commit

Permalink
update script
Browse files Browse the repository at this point in the history
  • Loading branch information
jiaojiaodubai committed Apr 18, 2024
1 parent 0570ec7 commit 0d23f2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/updateJSON.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 0d23f2b

Please sign in to comment.