mhutchie / vscode-git-graph

View a Git Graph of your repository in Visual Studio Code, and easily perform Git actions from the graph.
https://marketplace.visualstudio.com/items?itemName=mhutchie.git-graph
Other
1.97k stars 260 forks source link

Git Graph not working inside devcontainer #827

Open george-pippos opened 3 months ago

george-pippos commented 3 months ago

Describe the Bug Opening Git Graph inside a VS code instance attached to a devcontainer no longer works. This broke around a few months ago.

Steps to Reproduce Steps to reproduce the behaviour:

  1. Attach VS code to a devcontainer using a devcontainer.json file configured to use a base image (i.e. "image": "ubuntu:20.04")
  2. Install Git Graph in the attached VS code instance
  3. Open a workspace folder in a git repository
  4. Attempt to view the Git Graph
  5. You will see that it does not load correctly

Expected Behaviour The Git Graph should display as normal.

Environment

Screenshots (optional) image

This is the extension output in VS Code:

[2024-06-19 04:21:54.000] Starting Git Graph ...
[2024-06-19 04:21:54.006] Using git (version: 2.25.1)
[2024-06-19 04:21:54.010] Searching workspace for new repos ...
[2024-06-19 04:21:54.013] > git rev-parse --show-toplevel
[2024-06-19 04:21:54.015] Added new repo: /home/gpippos/git/emesent/autonomy3/autonomy
[2024-06-19 04:21:54.016] Completed searching workspace for new repos
[2024-06-19 04:21:54.016] Showing "Git Graph" Status Bar Item
agilous commented 2 months ago

Experiencing the same issue and found a workaround to be to set the git-graph.maxDepthOfRepoSearch extension setting to 1.