Closed
Description
Description
- Have GIT installed in a path that has spaces (eg. D:/Program Files/Git/cmd/git.exe)
- Open a repository with some branches
- Right click -> Delete branch -> Delete branch
- Observe the terminal printing:
PS C:\Repo\Repo> D:/Program Files/Git/cmd/git.exe -C "c:\Repo\Repo" -c "core.editor=code --wait --reuse-window" branch --delete BRANCH
D:/Program : Term 'D:/Program' not recognised as a cmdlet, function, executable or script.
Line:1 char:1
+ D:/Program Files/Git/cmd/git.exe -C "c:\Repo\Repo" ...
+ ~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (D:/Program:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
(I have translated the error message from the localized version)
GitLens Version
13.6
VS Code Version
Version: 1.78.2 (system setup)
Commit: b3e4e68a0bc097f0ae7907b217c1119af9e03435
Date: 2023-05-10T14:39:26.248Z
Electron: 22.5.2
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Windows_NT x64 10.0.19045
Sandboxed: Yes
Git Version
git version 2.40.0.windows.1
Logs, Screenshots, Screen Captures, etc
PS C:\Repo\Repo> D:/Program Files/Git/cmd/git.exe -C "c:\Repo\Repo" -c "core.editor=code --wait --reuse-window" branch --delete BRANCH
D:/Program : Term 'D:/Program' not recognised as a cmdlet, function, executable or script.
Line:1 char:1
+ D:/Program Files/Git/cmd/git.exe -C "c:\Repo\Repo" ...
+ ~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (D:/Program:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException