microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.59k stars 29.03k forks source link

vscode scm did not repect GIT_TERMINAL_PROMPT env #145511

Closed axetroy closed 1 year ago

axetroy commented 2 years ago

Does this issue occur when all extensions are disabled?: Yes

Steps to Reproduce:

  1. Open a terminal in vscode
  2. Clone a private repo with GIT_TERMINAL_PROMPT
GIT_TERMINAL_PROMPT=0 git clone https://github.com/username/private_repo

expect:

the command will exist with code 128 and print the error message:

fatal: could not read Username for 'https://github.com/username/private_repo': terminal prompts disabled

Actually

vscode will prompt for username and password

lszomoru commented 1 year ago

@axetroy, apologies for not getting back to you on this until now. Are you still able to reproduce this issue? Could you please check whether you have the git.terminalAuthentication setting enabled? Thank you!

vscodenpa commented 1 year ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!