From 42a7e902e62146d1efd3174e67831c8e265f308c Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Wed, 7 Feb 2018 11:32:50 +0000 Subject: [PATCH] Handle host key verification as auth error --- red/runtime/storage/localfilesystem/projects/git/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/red/runtime/storage/localfilesystem/projects/git/index.js b/red/runtime/storage/localfilesystem/projects/git/index.js index a6f6e3229..c8826414c 100644 --- a/red/runtime/storage/localfilesystem/projects/git/index.js +++ b/red/runtime/storage/localfilesystem/projects/git/index.js @@ -55,6 +55,9 @@ function runGitCommand(args,cwd,env) { err.code = "git_auth_failed"; } else if(/Permission denied \(publickey\)/.test(stderr)) { err.code = "git_auth_failed"; + } else if(/Host key verification failed/.test(stderr)) { + // TODO: handle host key verification errors separately + err.code = "git_auth_failed"; } else if(/Connection refused/.test(stderr)) { err.code = "git_connection_failed"; } else if (/commit your changes or stash/.test(stderr)) {