-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Description
- GitLens Version: 12.1.1
- Git Version: Run
git --version - VSCode Version: 1.16.1
- OS Version: Windows 10 Pro Education 21H2
- log.txt
I'm in a scenario where the Git extension works fine, but GitLens does not work. See attached log.
Conjecture: GitLens uses the default terminal instead of the default automation terminal. My default terminal is a Cygwin shell (which I prefer to use in Terminal). My default automation shell is Windows Command Prompt, as needed for running Git from VSCode. My shell configuration is as follows:
"terminal.integrated.defaultProfile.windows": "Cygwin ZSH",
"terminal.integrated.automationProfile.windows": {
"path": "${env:windir}\\System32\\cmd.exe",
"args": [],
"icon": "terminal-cmd"
},
"terminal.integrated.profiles.windows": {
"PowerShell": {
"source": "PowerShell",
"icon": "terminal-powershell"
},
"Command Prompt": {
"path": [
"${env:windir}\\Sysnative\\cmd.exe",
"${env:windir}\\System32\\cmd.exe"
],
"args": [],
"icon": "terminal-cmd"
},
"Git Bash": {
"source": "Git Bash"
},
"Cygwin ZSH": {
"path": [
"c:\\cygwin\\bin\\zsh.exe",
"c:\\cygwin64\\bin\\zsh.exe"
],
"args": [
"-i"
],
"env": {
"ZSH_HIGHLIGHT_DISABLE": "1"
}
}
},It seems that GitLens uses the Git extension for some interactions with Git, but directly runs Git for other interactions. In the latter case, perhaps it's running the wrong shell?
To clarify the log, "C:\Program Files\Git\cmd\git.exe" runs fine in Command Prompt, but does not run in a Cygwin shell. You can also see the /cygdrive/c/... path in the log, which is another sign that it's running in the Cygwin shell.