From efab9be9b90a08ebd58cde65a37b4f7038f0024c Mon Sep 17 00:00:00 2001
From: Michael Kriese <michael.kriese@visualon.de>
Date: Wed, 10 Feb 2021 18:28:54 +0100
Subject: [PATCH] fix(gitlab): catch git permission error (#8629)

---
 lib/util/git/index.ts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/util/git/index.ts b/lib/util/git/index.ts
index 33f09351d7..26261c5f0b 100644
--- a/lib/util/git/index.ts
+++ b/lib/util/git/index.ts
@@ -71,6 +71,7 @@ function checkForPlatformFailure(err: Error): void {
     'malformed object name',
     'TF401027:', // You need the Git 'GenericContribute' permission to perform this action
     'Could not resolve host',
+    ' is not a member of team',
   ];
   for (const errorStr of externalHostFailureStrings) {
     if (err.message.includes(errorStr)) {
-- 
GitLab