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:
parent
b4c8bf21d5
commit
415c768ae4
@ -288,7 +288,8 @@ function parseLog(log) {
|
|||||||
}
|
}
|
||||||
var m = /^(.*): (.*)$/.exec(l);
|
var m = /^(.*): (.*)$/.exec(l);
|
||||||
if (m) {
|
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() });
|
currentCommit[m[1]] = m[2].split(",").map(function(v) { return v.trim() });
|
||||||
} else {
|
} else {
|
||||||
if (m[1] === 'parents') {
|
if (m[1] === 'parents') {
|
||||||
|
Loading…
Reference in New Issue
Block a user