From e0c1d31bc9ca82a80350ab6d4480cdb762b15af3 Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Thu, 18 Nov 2021 12:41:31 +0100
Subject: [PATCH] fix(git): catch matches more than one

Fixes #12734
---
 lib/util/git/index.ts | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/util/git/index.ts b/lib/util/git/index.ts
index 938bf1f31b..a79522eb5d 100644
--- a/lib/util/git/index.ts
+++ b/lib/util/git/index.ts
@@ -109,6 +109,11 @@ function checkForPlatformFailure(err: Error): void {
       message:
         'You need the Git `GenericContribute` permission to perform this action',
     },
+    {
+      error: 'matches more than one',
+      message:
+        "Renovate cannot push branches if there are tags with names the same as Renovate's branches. Please remove conflicting tag names or change Renovate's branchPrefix to avoid conflicts.",
+    },
   ];
   for (const { error, message } of configErrorStrings) {
     if (err.message.includes(error)) {
-- 
GitLab