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

Commit graph for subrepository not always opening in "Source Control" tab

Open AlexTheAlgoMan opened this issue 4 months ago • 3 comments

Description

This is a sporadic error, but happens every once in a while.

The setup

  • I have a git repository, A, with a submodule, B, nested in a folder.
  • I am paying for GitLens

The bug When I have a subrepo in my main repo (e.g. B in A), GitLens gives me two separate overviews of changes, stages, commits, etc. For each of these, there is a little "git tree" icon ("Show Commit Graph") that I can click to open a Commit Graph. This works 80% of the time.

However, sometimes, when I click the "Show Commit Graph" button on subrepo B, it just opens the commit graph visualization for the main/parent repo, A.

Severity Given that subrepos are an integral part of our codebase, this is a breaking bug.

Pattern of occurrence There seems to be no clear pattern for when or why this happens, unfortunately.

GitLens Version

17.4.1

VS Code Version

No response

Git Version

git version 2.45.1.windows.1

Logs, Screenshots, Screen Captures, etc

Image

AlexTheAlgoMan avatar Sep 04 '25 07:09 AlexTheAlgoMan

There are also cases where the submodule is not even registering as a subrepo with its own commit graph, as seen here in Cursor:

Image

AlexTheAlgoMan avatar Sep 04 '25 14:09 AlexTheAlgoMan

I also have this issue. I think this happens when path property in .gitmodules contains forward slashes /.

I.e. this configuration works:

[submodule "my-submodule"]
	path = sumbodule_path
	url = path/to/repo.git

and this is broken:

[submodule "my-submodule"]
	path = path/to/sumbodule
	url = path/to/repo.git

GitLens extension version: 17.4.1 VSCode versoin:

Version: 1.103.2 (system setup)
Commit: 6f17636121051a53c88d3e605c491d22af2ba755
Date: 2025-08-20T16:45:34.255Z
Electron: 37.2.3
ElectronBuildId: 12035395
Chromium: 138.0.7204.100
Node.js: 22.17.0
V8: 13.8.500258-electron.0
OS: Windows_NT x64 10.0.22631

UPD: Now randomly started working... 🤷‍♂️

GlebMorgan avatar Sep 17 '25 13:09 GlebMorgan

This is still an ongoing issue. How do i bump this?

AlexTheAlgoMan avatar Dec 08 '25 09:12 AlexTheAlgoMan