Commit c04aaff8 authored by mercury233's avatar mercury233

fix old git compatability

parent 301d7105
...@@ -98,7 +98,7 @@ var makeChangelogs = function(dir, since) { ...@@ -98,7 +98,7 @@ var makeChangelogs = function(dir, since) {
var log = logs[i].split(","); var log = logs[i].split(",");
var date = log[1]; var date = log[1];
if (date) { if (date) {
var prc_git_diff = spawnSync("git", [ "diff-tree", "--no-commit-id", "--name-only" ,"--diff-filter=ad" , "-r", log[0] ], { "cwd" : dir }); var prc_git_diff = spawnSync("git", [ "diff-tree", "--no-commit-id", "--name-only" ,"--diff-filter=CMR" , "-r", log[0] ], { "cwd" : dir });
if (prc_git_diff.stdout) { if (prc_git_diff.stdout) {
var lines = prc_git_diff.stdout.toString().split(/\n/g); var lines = prc_git_diff.stdout.toString().split(/\n/g);
for (var j in lines) { for (var j in lines) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment