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.89k stars 243 forks source link

Graph does not update automatically for submodules #789

Open stitam opened 8 months ago

stitam commented 8 months ago

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

Many thanks!