From 415c768ae44dab16b48d52f17eacda69d927bd39 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Tue, 6 Feb 2018 11:00:11 +0000 Subject: [PATCH] Filter out %D from git log command for older git versions --- red/runtime/storage/localfilesystem/projects/git/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/red/runtime/storage/localfilesystem/projects/git/index.js b/red/runtime/storage/localfilesystem/projects/git/index.js index 12e2894ab..d36fed22e 100644 --- a/red/runtime/storage/localfilesystem/projects/git/index.js +++ b/red/runtime/storage/localfilesystem/projects/git/index.js @@ -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') {