Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
703 views
in Technique[技术] by (71.8m points)

image - Git push hangs on POST git-receive-pack

I'm on a Windows 8 Machine with git version 1.9.5.msysgit.0 pushing to a TFS Git Repository hosted on HTTPS.

When I push any text file everything is fine. But pushing a certain .jpg file git hangs on POST git-recieve-pack with the following output:

$ git push -v
Pushing to https://tfs.ourcompanyn.com/tfs/DefaultCollection/Prototypes/_git/TestProject
Counting objects: 11, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 59.76 KiB | 0 bytes/s, done.
Total 5 (delta 3), reused 0 (delta 0)
POST git-receive-pack (61329 bytes)

It stays like this and does not change anymore

We use wincred as credentialhelper and I've checked that authentication works. Also I can push code. Just some of the .jpeg Files create this problem.

Is CMYK / RGB a problem? Is https with git and tfs a problem?

EDIT: I've tried so far to increase http.postbuffer as mentioned in this post.

git config http.postBuffer 524288000
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

The problem occurs with msysgit and curl in the current version. There's a problem with handling authentication over HTTPS:

Documented here: https://github.com/msysgit/git/issues/349

Solution: Install the pre-release of Git for Windows 2.x

UPDATE:

Version 2.5.1 for Windows is released, so please use that one. https://git-scm.com/download/win


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...