vscode: Git operations fail due to empty VSCODE_GIT_ASKPASS_EXTRA_ARGS
Does this issue occur when all extensions are disabled?: Yes
- VS Code Version: 1.62.2
- OS Version: Debian 12
Steps to Reproduce:
- Run
env | grep VSCODE_GIT_ASKPASS_EXTRA_ARGS
returnsVSCODE_GIT_ASKPASS_EXTRA_ARGS=
- Move to a git repository and run
git fetch
returns:remote: HTTP Basic: Access denied
- Run
export VSCODE_GIT_ASKPASS_EXTRA_ARGS="--ms-enable-electron-run-as-node"
- Running
git fetch
then works.
VSCODE_GIT_ASKPASS_EXTRA_ARGS
should be set to --ms-enable-electron-run-as-node
.
Output of process.versions
in debug console:
ares: "1.16.1"
brotli: "1.0.9"
chrome: "91.0.4472.164"
electron: "13.5.2"
icu: "68.1"
llhttp: "2.1.3"
microsoft-build: "10663358"
modules: "89"
napi: "7"
nghttp2: "1.41.0"
node: "14.16.0"
openssl: "1.1.1"
unicode: "13.0"
uv: "1.40.0"
v8: "9.1.269.39-electron.0"
zlib: "1.2.11"
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 12
- Comments: 21 (6 by maintainers)
Links to this issue
Commits related to this issue
- Fixes #136771: update to Electron v13.5.2 and pass `--ms-enable-run-as-node` together with `ELECTRON_RUN_AS_NODE` — committed to microsoft/vscode by deepak1556 3 years ago
Fix is now available with latest insiders Version: 1.63.0-insider (d450b04c783dfa6f83dc439017767acccd4e9fac) and will be shipped with recovery release
1.62.3
later this week. Please give it a try and sorry for the breakage!Also many thanks to @gjsjohnmurray for triaging duplicates!
The problem is not limited to the terminal, builtin git operations fail as well.
I can confirm that the insider build is working now. Thanks @deepak1556 and others involved!
Thanks @deepak1556 and @tpambor Just added “git.terminalAuthentication”: false to .vscode/settings.json which allows auth creds to be passed via terminal. Once the fix is released, “git.terminalAuthentication” in settings.json to true which is the default value or even removed to avoid confusion.
I am using the deb package
https://packages.microsoft.com/repos/vscode stable/main amd64 code amd64 1.62.2-1636665017
.First
git fetch
is not asking for credentials instead fails directly.code.log
The same problem is also present in 1.62.1. 1.62.0 is the last working version.
My issue was closed and was pointed back to this issue, which is supposed to be fixed in 1.62.3. However this issue is still not fixed for me in 1.62.3, Ubuntu 21.04
On any git command, eg a: git fetch:
The same problem is present in INSIDER build also