Vscode-git-graph: Git Graph Unable to load Git Graph. Either the current workspace is not a Git Repository, or the Git executable could not found.

Created on 6 Mar 2019  Â·  11Comments  Â·  Source: mhutchie/vscode-git-graph

Describe the bug
Git Graph
Unable to load Git Graph. Either the current workspace is not a Git Repository, or the Git executable could not found.

git.path is defined in the settings file

What does the bug relate to
List the area(s) this issue relates to, for example:

  • Graph Rendering

To reproduce
Steps to reproduce the behaviour:

  1. Open a Workspace
  2. Click on 'Git Graph' or F1 > Git Graph
  3. See error

Expected behaviour
I would expect to see a colored graph

Environment

  • OS: [Windows 10]
  • Visual Studio Code Version: [1.31.1]

Screenshots (optional)
Add any screenshots to help explain your problem.
error1

Additional context (optional)
git.path is defined and other git extensions are working GitHistory etc

bug

All 11 comments

Are you trying to view Git Graph in multi-root workspace? If so, is the first root folder a Git repo?

Are you trying to view Git Graph in multi-root workspace? If so, is the first root folder a Git repo?

Git Graph just work for the first folder in vs code?how to use it in other root folder?

@oppoic Multi-root workspaces will be fully support in the next release 1.4.1 (available tomorrow), as described in the issue https://github.com/mhutchie/vscode-git-graph/issues/13. I asked this question, as it could explain the issue @SmUrF3R5 was having, as Git Graph currently only displays the first folder in a multi-root workspace.

@SmUrF3R5 Multi-root support now available in 1.4.1 (which I was alluding to in my previous question). Please update to it, and report back if you are still having an issue.

@SmUrF3R5 Your value for git.path doesn't include git.exe. The Visual Studio Code description of the git.path setting indicates "Path and filename of the git executable, e.g. C:\Program Files\Git\bingit.exe (Windows).". Missing git.exe would definitely cause the behaviour you're observing.

I just experienced this issue and it was because git.path wasn't set in settings.json.

how did you fix it?
I have this set in my settings .json
"terminal.integrated.shell.windows": "C:\Program Files\Git\bin\bash.exe"
"git.path": "C:\Program Files\Git\bin\bash.exe",
but it still doesn't work :(

@avirupdutta git.path is the "Path and filename of the git executable". You have it referring to the bash executable bash.exe instead of the Git executable git.exe.

I also tried putting git.exe in the path of "git.path" but it still doesn't
recognize. So I tried out with bash.exe

On Tue, Jul 2, 2019 at 6:23 PM Michael Hutchison notifications@github.com
wrote:

@avirupdutta https://github.com/avirupdutta git.path is the "Path and
filename of the git executable". You have it set to bash.exe when it
should be git.exe.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/mhutchie/vscode-git-graph/issues/21?email_source=notifications&email_token=AJLEN5WYVYVE3VU3POWKCODP5NFV5A5CNFSM4G4FC362YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZBFKXA#issuecomment-507663708,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJLEN5SU62X5GBERK2KVHGDP5NFV5ANCNFSM4G4FC36Q
.

@avirupdutta git.path should be C:\Program Files\Git\bin\git.exe for you, not C:\Program Files\Git\bin\bash.exe.

OMG it worked!!!! Thank you so so much :)
It just needed the vscode to be refreshed after I update the settings.json file

Was this page helpful?
0 / 5 - 0 ratings

Related issues

morganlombard picture morganlombard  Â·  5Comments

kanlukasz picture kanlukasz  Â·  3Comments

nickmeinhold picture nickmeinhold  Â·  5Comments

kimyvgy picture kimyvgy  Â·  7Comments

Kevinwuu picture Kevinwuu  Â·  3Comments