mirror of https://github.com/node-red/node-red.git
Merge pull request #5315 from stoprocent/master
Fix race condition in projects initialization by returning gitTools.init() promisepull/5338/head
commit
ea5c134866
|
|
@ -92,7 +92,7 @@ function init(_settings, _runtime) {
|
|||
|
||||
if (projectsEnabled) {
|
||||
return sshTools.init(settings,runtime).then(function() {
|
||||
gitTools.init(_settings).then(function(gitConfig) {
|
||||
return gitTools.init(_settings).then(function(gitConfig) {
|
||||
if (!gitConfig || /^1\./.test(gitConfig.version)) {
|
||||
if (!gitConfig) {
|
||||
projectLogMessages.push(log._("storage.localfilesystem.projects.git-not-found"))
|
||||
|
|
|
|||
Loading…
Reference in New Issue