vscode-gitlens icon indicating copy to clipboard operation
vscode-gitlens copied to clipboard

Error caused by having remote with two push URLs

Open ChrisCrossCrash opened this issue 3 years ago • 0 comments

GitLens Version

v12.1.2

VS Code Version

Version: 1.70.1 (user setup) Commit: 6d9b74a70ca9c7733b29f0456fd8195364076dda Date: 2022-08-10T06:08:33.642Z Electron: 18.3.5 Chromium: 100.0.4896.160 Node.js: 16.13.2 V8: 10.0.139.17-electron.0 OS: Windows_NT x64 10.0.22000

Git Version

git version 2.34.1

Description

I've set up a repository with two push URLs and one fetch URL:

$ git remote show origin
* remote origin
  Fetch URL: [email protected]:lulzbot3d/internal-projects/fame-3d-odoo/lulzbot-website.git
  Push  URL: https://github.com/ChrisCrossCrash/lulzbot-website
  Push  URL: [email protected]:lulzbot3d/internal-projects/fame-3d-odoo/lulzbot-website.git
  HEAD branch: master
  Remote branches:
    master                        tracked
  Local branches configured for 'git pull':
    master  merges with remote master
  Local refs configured for 'git push':
    master  pushes to master  (up to date)

Here's how it looks in GitLens: image

When I try to expand the both origin dropdowns, I get the error:

Element with id gitlens:repository(/home/ck/projects/lulzbot-website):branch(origin/master) is already registered

image

So I suppose the issue is that GitLab lists the same remote twice (once for each push URL). It should only show one remote (origin).

Logs, Screenshots, Screen Captures, etc

No response

ChrisCrossCrash avatar Aug 10 '22 22:08 ChrisCrossCrash