From 5b1bf35a2311ed14e900da0d3d34d66c9f303238 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Mon, 7 Jun 2021 18:06:35 +0100 Subject: [PATCH] Fix over-greeding matching whilst parsing commit history Fixes #3006 --- .../runtime/lib/storage/localfilesystem/projects/git/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/node_modules/@node-red/runtime/lib/storage/localfilesystem/projects/git/index.js b/packages/node_modules/@node-red/runtime/lib/storage/localfilesystem/projects/git/index.js index e1ded4337..f9d809231 100644 --- a/packages/node_modules/@node-red/runtime/lib/storage/localfilesystem/projects/git/index.js +++ b/packages/node_modules/@node-red/runtime/lib/storage/localfilesystem/projects/git/index.js @@ -291,7 +291,7 @@ function parseLog(log) { currentCommit = {} return; } - var m = /^(.*): (.*)$/.exec(l); + 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]) {