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

Unable to load Git Graph - windows10 - cygdrive (cygwin path)

Open godzzo opened this issue 2 years ago • 2 comments

Describe the Bug If I open project from cygwin, the vscode could find out the folder path correctly, but Git Graph not.

[2022-09-25 05:36:47.071] Starting Git Graph ...
[2022-09-25 05:36:47.894] Using git (version: 2.37.3)
[2022-09-25 05:36:47.910] Started Git Graph - Ready to use!
[2022-09-25 05:36:47.910] Searching workspace for new repos ...
[2022-09-25 05:36:47.919] > git rev-parse --show-toplevel
[2022-09-25 05:36:47.976] Successfully set Visual Studio Code Context "git-graph:codiconsSupported" to "true"
[2022-09-25 05:36:48.762] Added new repo: /cygdrive/c/Users/tester/Documents/Projects/sandfox-png-handler
[2022-09-25 05:36:48.765] Completed searching workspace for new repos
[2022-09-25 05:36:48.765] Showing "Git Graph" Status Bar Item
[2022-09-25 05:37:00.493] > git rev-parse --show-toplevel
[2022-09-25 05:37:00.546] Created Git Graph View
[2022-09-25 05:37:00.931] > git branch -a --no-color
[2022-09-25 05:37:00.934] > git remote
[2022-09-25 05:37:00.936] > git reflog --format=... refs/stash --
[2022-09-25 05:37:00.939] > git rev-parse --show-toplevel
[2022-09-25 05:37:00.940] Started watching repo: /cygdrive/c/Users/tester/Documents/Projects/sandfox-png-handler
[2022-09-25 05:37:00.969] > git rev-parse --show-toplevel
[2022-09-25 05:37:00.969] Removed repo: /cygdrive/c/Users/tester/Documents/Projects/sandfox-png-handler
[2022-09-25 05:37:00.969] Hiding "Git Graph" Status Bar Item

Steps to Reproduce Steps to reproduce the behaviour:

  1. Go to cygwin bash
  2. cd /project/folder
  3. Type code .
  4. Run command (Ctrl+Shift+P) Git Graph: View Git Graph (git log)
  5. See error in the View : Unable to load Git Graph

Expected Behaviour Locate git repository properly from vscode project root.

Environment

  • Git Graph Extension Version: v1.30.0
  • Visual Studio Code Version: 1.71.2
  • Operating System: Windows 10

godzzo avatar Sep 25 '22 03:09 godzzo

Any news about this or any temporary fixes? It doesn't work anymore. On 1 machine I haven't restart vs code, is still work. But when I restart vscode it stops to work on my project with multiple components. The root project is still working, but then for component it says "Unable to load Git Graph", even the .git folder is there. I can operate git commands with the integrated terminal. It just seems that something has been changed on vscode, and git-graph isn't able to find the .git repository of the current folder/workspace.

JakeSOB avatar Sep 29 '22 07:09 JakeSOB

I encountered this error on Win11, but git commit is normal

zyjdmmm avatar Sep 23 '23 14:09 zyjdmmm