1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Filter out %D from git log command for older git versions

This commit is contained in:
Nick O'Leary 2018-02-06 11:00:11 +00:00
parent b4c8bf21d5
commit 415c768ae4
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -288,7 +288,8 @@ function parseLog(log) {
}
var m = /^(.*): (.*)$/.exec(l);
if (m) {
if (m[1] === 'refs' && m[2]) {
// git 2.1.4 (Debian Stable) doesn't support %D for refs - so filter out
if (m[1] === 'refs' && m[2] && m[2] !== '%D') {
currentCommit[m[1]] = m[2].split(",").map(function(v) { return v.trim() });
} else {
if (m[1] === 'parents') {