From bbd0696a08f59f9f81dc881bac813c04f7bba1e0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20H=C3=B8ydahl?= <janhoy@users.noreply.github.com>
Date: Sun, 4 Dec 2022 07:22:46 +0100
Subject: [PATCH] fix(maven): do not strip .git suffix from sourceUrl (#19235)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Jan Høydahl <janhoy@users.noreply.github.com>
---
 lib/modules/datasource/maven/util.ts | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/modules/datasource/maven/util.ts b/lib/modules/datasource/maven/util.ts
index 57dbcbaa41..733c1ecd0d 100644
--- a/lib/modules/datasource/maven/util.ts
+++ b/lib/modules/datasource/maven/util.ts
@@ -405,8 +405,7 @@ export async function getDependencyInfo(
       .replace(regEx(/^scm:/), '')
       .replace(regEx(/^git:/), '')
       .replace(regEx(/^git@github.com:/), 'https://github.com/')
-      .replace(regEx(/^git@github.com\//), 'https://github.com/')
-      .replace(regEx(/\.git$/), '');
+      .replace(regEx(/^git@github.com\//), 'https://github.com/');
 
     if (result.sourceUrl.startsWith('//')) {
       // most likely the result of us stripping scm:, git: etc
-- 
GitLab