microsoft / vscode

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

git push hangs when pushing from remote #219570

Open nickblock opened 2 months ago

nickblock commented 2 months ago

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

(has had same behaviour for a number of versions now)

Steps to Reproduce:

  1. Open vscode on linux
  2. Attach to remote windows machine via ssh (windows running openssh)
  3. open powershell terminal in vscode
  4. run git push to remote ssh linux machine using keys

command hangs

see ssh log: gitlog.txt

git version 2.44.0.windows.1

Same command 'git push' works fine when sshing into windows machine and running from powershell, the only difference seems to be that powershell is started from within vscode.

It is also possible to log into the machine that has the git repo on it from windows powesehell in vscode without password using key.

lszomoru commented 1 month ago

@nickblock, sorry for not getting back to you on this until now. Are you able to reproduce the issue with the latest VS Code Insiders release?

nickblock commented 1 month ago

Yes, still there on

Version: 1.92.0-insider Commit: 22e3447b4b410dcf8426bf70743c5dd4030d6122 Date: 2024-07-23T05:03:52.385Z Electron: 30.2.0 ElectronBuildId: 9884022 Chromium: 124.0.6367.243 Node.js: 20.15.0 V8: 12.4.254.20-electron.0 OS: Linux x64 6.5.6-300.fc39.x86_64

nickblock commented 1 month ago

I printed out the env from the 2 different powershell prompts (dir env:). In vscode terminal only I see these:

VSCODE_GIT_ASKPASS_MAIN c:\Users\nick.vscode-server-insiders\cli\servers\Insiders-22e3447b4b410dcf8426bf70743c5dd4030d6122\server\extens... VSCODE_GIT_ASKPASS_NODE C:\Users\nick.vscode-server-insiders\cli\servers\Insiders-22e3447b4b410dcf8426bf70743c5dd4030d6122\server\node.exe VSCODE_GIT_IPC_HANDLE \.\pipe\vscode-git-041154424d-sock
VSCODE_INJECTION 1
VSCODE_IPC_HOOK_CLI \.\pipe\vscode-ipc-093266a0-0205-4da4-b655-951f3d84a62e-sock

I unset them all but it didnt help

lszomoru commented 3 weeks ago

@nickblock, do you have the possibility to remote desktop onto the Windows machine and launch VS Code locally? I just want to rule out the "Remote SSH" extension from the equation in an effort to try to narrow down the issue. Thanks!

nickblock commented 3 weeks ago

Yes, its fine just using git push from terminal within vscode just using it on windows directly.