From 1b7f17f3ef67878a5ed4d521e70bf90c96902fbe Mon Sep 17 00:00:00 2001
From: Michael Kriese <michael.kriese@visualon.de>
Date: Fri, 8 Jan 2021 08:45:45 +0100
Subject: [PATCH] fix(azure): catch auth error (#8222)

---
 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 21014566e0..aa4e9de0e4 100644
--- a/lib/util/git/index.ts
+++ b/lib/util/git/index.ts
@@ -68,6 +68,7 @@ function checkForPlatformFailure(err: Error): void {
     'Failed to connect to',
     'Connection timed out',
     'malformed object name',
+    'TF401027:', // You need the Git 'GenericContribute' permission to perform this action
   ];
   for (const errorStr of platformFailureStrings) {
     if (err.message.includes(errorStr)) {
-- 
GitLab