From 237da104fc542396aef7a0bcd210dc4d02b51fa5 Mon Sep 17 00:00:00 2001 From: Sonny Piers Date: Tue, 3 Jun 2025 09:51:51 +0200 Subject: [PATCH] Add an additional git_auth_failed condition The following error log on push did not trigger the username/password prompt. remote: Permission to PlanktoScope/dashboard.git denied to sonnyp. fatal: unable to access 'https://github.com/PlanktoScope/dashboard.git/': The requested URL returned error: 403 --- .../runtime/lib/storage/localfilesystem/projects/git/index.js | 2 ++ 1 file changed, 2 insertions(+) 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 96dab3417..983b4ca52 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 @@ -51,6 +51,8 @@ function runGitCommand(args,cwd,env,emit) { err.code = "git_auth_failed"; } else if(/Authentication failed/i.test(stderr)) { err.code = "git_auth_failed"; + } else if (/The requested URL returned error: 403/i.test(stderr)) { + err.code = "git_auth_failed"; } else if (/commit your changes or stash/i.test(stderr)) { err.code = "git_local_overwrite"; } else if (/CONFLICT/.test(err.stdout)) {