You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Don't have git.exe in the PATH environment variables
An example command that fails is delete branch from the "branches" tab:
git branch --delete Testing
git: The term 'git' is not recognized as a name of a cmdlet, function, script file, or executable program.
If I instead do the git: delete branch command then the branch is deleted
So it looks like some of the git lens functionality is implemented by entering git commands in the terminal.
The text was updated successfully, but these errors were encountered:
I experience the same problem using cygwin. My problem is that i have to use cygwin's git binary, but vscode integrated git extension isn't supporting it (or it ignores the integrated terminal profile for some reason).
To make things work i used a hack 1 to change the path styles to windows. For this to work one has set the git.path to this wrapper.
Now since Gitlese is using the integrated terminal. which is set to cygwin/bash. The git.path should be pointing to a different path, namly, cygwins git.
I guess an option to set a custom git path for GitLens would help in this case, since VSCode doesn't seem to care about supporting cygwin. 2
Unfortunately, GitLens also doesn't support cygwin/msysgit either. GitLens works with and interacts with the VS Code Git extension, so for things to work properly they both have to support it.
@eamodio well it's an easy fix it's just about path conversion. atm i use a batch srcipt which converts windows paths to unix paths (since git base is useing windows paths). Gitlense on the other hand uses the configured intergreated terminal which is already cygwin (so it supports it). Because gitlense is using the "correct" enviroment the conversion shouldn't be applied.
would it be possible to bring back the gitlense.advanced.git configuration?
this would allow to point to different git binaries for gitlense.
Steps to Reproduce:
git branch --delete Testing
git: The term 'git' is not recognized as a name of a cmdlet, function, script file, or executable program.
So it looks like some of the git lens functionality is implemented by entering git commands in the terminal.
The text was updated successfully, but these errors were encountered: