开发者

Git/SmartGit fails to push "big" files

I am using Smartgit 2.0.2. When I try to push small file (for example 1kb .txt file) it works. However with 2mb and 6mb files it fails. Here's output:

Commit: sha1 file '<stdout>' write error: Invalid argument The remote end hung up unexpectedly pack-objects died with strange error failed to push some refs to '<link hidden>'
[master 94d1218] test
1 files changed, 0 insertions(+), 0 deletions(-)
create mode 100644 Client/Leavers.pdf
sha1 file '<stdout>' write error: Invalid argument
The remote end hung up unexpectedly
pack-objects died with strange error
failed to push some refs to '<link hidd开发者_C百科en>'

On other side of the world, with different computer, connection, but same configuration everything works correctly. Anyone have idea how to fix it, or what it is at least? Thank you in advance.


Smartgit uses a standard git command line under the UI wrappers. The problem is a network issue. Try setting up an SSH key to communicate with the remote server. If you can, set the remote server (or have their system admin do it) so that it sets the KeepAlive for your SSH setting. This is done via the sshd_config on their end. You may also need to tweak your ssh_config (the client side) on your end. Some servers don't play well with unstable network providers so even a small network hiccup can drop the connection, which is much more likely during a longer download. DSL and overused cable subnets are prime suspects.

IF you need more information on SSH keepalives, check out our blog articles at http://www.cybersprocket.com/tag/ssh/


Had the same problem pushing big files with git. On the server, auth.log contained Corrupted MAC on input which seems to be a long standing known kernel bug. After applying the fix found on that page ethtool -K eth0 rx off tx off the problem was resolved.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜