vscode-git-graph icon indicating copy to clipboard operation
vscode-git-graph copied to clipboard

Graph does not update automatically for submodules

Open stitam opened this issue 1 year ago • 0 comments

Related to #778

Describe the Bug I have another issue with submodules. I can open the the git graph for both the main repo and the submodule that's fine. When I make a commit through the terminal to the main repo, the git graph for the main repo updates automatically, great, this is the expected behaviour. However, when I make a commit through the terminal to the submodule, the git graph for the submodule does not update automatically. Instead, I have to close the git graph and reopen it to see the changes. This happens not only with commits but with any other interaction e.g. switching branches. Git Graph updates automatically for the main repo but not for the submodule.

EDIT: it seems this issue only comes up when I interact with the repo from terminal (I use vs code built in terminal) and may not come up when I interact with the git repo in a point and click manner.

Steps to Reproduce Steps to reproduce the behaviour:

  1. Go to "Source Control"
  2. Click on "View Git Graph" for the submodule
  3. Open a terminal, navigate to the submodule
  4. Change something, make a commit
  5. Look at the Git Graph for the submodule (no update)
  6. Close the Git Graph for the submodule and reopen (update)

Expected Behaviour Git Graph should automatically update for the submodule as well.

Environment

  • Git Graph Extension Version: v1.30.0
  • Visual Studio Code Version: 1.84.0-insider
  • Operating System: Debian 11

Many thanks!

stitam avatar Oct 11 '23 11:10 stitam