Git push to TFS stop on 100 percent

236 views Asked by At

When I push a media file (swf or png) to TFS, the process hangs at 100%, regardless of the file size:

git.exe push --progress "origin" develop:develop

Counting objects: 82, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (23/23), done.
Writing objects: 100% (23/23), 335.75 KiB | 0 bytes/s, done.
Total 23 (delta 16), reused 0 (delta 0)
1

There are 1 answers

1
Daniel On

I just stumbled across this one. It seems that the push hangs if the commit contains a PNG file (as it was in my case). The response I got when sniffing the network was:

    401 - Unauthorized: Access is denied due to invalid credentials. 
    You do not have permission to view this directory 
    or page using the credentials that you supplied.

which is really beside the point; I can authenticate, clone and pull just fine.

Try this, it worked for me:

  1. Reset the commit (git reset HEAD~1 if it's the last commit). This is fine as long as you haven't pushed.
  2. Add the files to the Git Index again, but without the PNG-file.
  3. Commit.
  4. Push.

The problem is in TFS and you need to involve its administrator.