From 41de771074cec064589b4a32c824300f8fce397c Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Thu, 21 Feb 2019 22:44:09 +0000 Subject: [PATCH] Fix git clone with password protected key --- .../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 01f307ce9..05780f392 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 @@ -29,7 +29,7 @@ function runGitCommand(args,cwd,env,emit) { log.trace(gitCommand + JSON.stringify(args)); args.unshift("credential.helper=") args.unshift("-c"); - return exec.run(gitCommand, args, {cwd:cwd, env:env}, emit).then(result => { + return exec.run(gitCommand, args, {cwd:cwd, detached:true, env:env}, emit).then(result => { return result.stdout; }).catch(result => { var stdout = result.stdout;