From 021db4bf0bdf175184f288bd9ac94431cfe053aa Mon Sep 17 00:00:00 2001
From: Adam Setch <adam.setch@outlook.com>
Date: Fri, 22 Nov 2024 11:48:52 -0500
Subject: [PATCH] fix: Revert "fix(bitbucket): source link root path" (#32680)

---
 lib/modules/platform/bitbucket/index.spec.ts | 8 --------
 lib/modules/platform/bitbucket/index.ts      | 1 -
 2 files changed, 9 deletions(-)

diff --git a/lib/modules/platform/bitbucket/index.spec.ts b/lib/modules/platform/bitbucket/index.spec.ts
index 19546256ec..92ca09c781 100644
--- a/lib/modules/platform/bitbucket/index.spec.ts
+++ b/lib/modules/platform/bitbucket/index.spec.ts
@@ -1656,14 +1656,6 @@ describe('modules/platform/bitbucket/index', () => {
 
       expect(bitbucket.massageMarkdown(prBody)).toMatchSnapshot();
     });
-
-    it('converts source links', () => {
-      const prBody = '[source](https://bitbucket.org/foo/bar/tree/HEAD)';
-
-      expect(bitbucket.massageMarkdown(prBody)).toBe(
-        '[source](https://bitbucket.org/foo/bar/src/HEAD)',
-      );
-    });
   });
 
   describe('updatePr()', () => {
diff --git a/lib/modules/platform/bitbucket/index.ts b/lib/modules/platform/bitbucket/index.ts
index 97915bcefa..9678aa2443 100644
--- a/lib/modules/platform/bitbucket/index.ts
+++ b/lib/modules/platform/bitbucket/index.ts
@@ -583,7 +583,6 @@ export function massageMarkdown(input: string): string {
     .replace(regEx(/<\/?(details|blockquote)>/g), '')
     .replace(regEx(`\n---\n\n.*?<!-- rebase-check -->.*?\n`), '')
     .replace(regEx(/\]\(\.\.\/pull\//g), '](../../pull-requests/')
-    .replace(regEx(/\/tree\/HEAD/g), '/src/HEAD')
     .replace(regEx(/<!--renovate-(?:debug|config-hash):.*?-->/g), '');
 }
 
-- 
GitLab