mirror of https://github.com/node-red/node-red.git
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: 403pull/5145/head
parent
900dfaf6b8
commit
237da104fc
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue