mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Ensure commit list has a refs object even if empty
This commit is contained in:
parent
42a7e902e6
commit
4a5cb7f2f5
@ -296,8 +296,12 @@ function parseLog(log) {
|
||||
var m = /^(.*): (.*)$/.exec(l);
|
||||
if (m) {
|
||||
// git 2.1.4 (Debian Stable) doesn't support %D for refs - so filter out
|
||||
if (m[1] === 'refs' && m[2] && m[2] !== '%D') {
|
||||
if (m[1] === 'refs' && m[2]) {
|
||||
if (m[2] !== '%D') {
|
||||
currentCommit[m[1]] = m[2].split(",").map(function(v) { return v.trim() });
|
||||
} else {
|
||||
currentCommit[m[1]] = [];
|
||||
}
|
||||
} else {
|
||||
if (m[1] === 'parents') {
|
||||
currentCommit[m[1]] = m[2].split(" ");
|
||||
|
Loading…
Reference in New Issue
Block a user