PowerShell / PowerShell/PowerShell
git pull command hung over ssh
未关闭
还没有人认领这个 Issue。
Issue-Bug
Needs-Triage
WG-Remoting
- 主要语言
- C#
- 星标
- 55.5k
- 派生
- 8.5k
- 平均合并
- 1 天 2 小时
- 30 天内合并 PR
- 88
描述
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
- Refer to the FAQ.
- Refer to Differences between Windows PowerShell 5.1 and PowerShell.
Steps to reproduce
Repro steps:
$session = New-PSSession -HostName xxx.xxx.com -UserName Lin
enter-PSSession -Session $session
$env:GIT_TRACE=2
$env:GIT_SSH_COMMAND="ssh -vvv"
git pull origin main
NOTE, if I ssh into command prompt on remote machine, git works fine. This is why I think maybe the bug is in PowerShell. In other words, the following works fine:
ssh Lin@desktop-n9cin42.amd.com
lin@DESKTOP-N9CIN42 C:\Users\MyGitRepo> git pull origin main
Expected behavior
git commands run successfully
Actual behavior
git pull command hangs
Error details
No response
Environment data
PowerShell versions on Remote machine:
[11 ms] > $PSVersionTable
Name Value
---- -----
PSVersion 7.3.3
PSEdition Core
GitCommitId 7.3.3
OS Microsoft Windows 10.0.19044
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Visuals
No response
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先在 PowerShell 7.3.3 和 Windows 10 上复现列出的 New-PSSession 和 Enter-PSSession 命令,然后将它们与能够成功执行的直接 SSH 命令进行比较。调查 git pull origin main 在这些会话中的运行方式有何不同;完成标准是该命令能够通过 PowerShell 会话成功完成,而不是一直挂起。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- git, powershell
- 领域
- cli
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100