Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git push halts on "Writing Objects: 100%"

Tags:

git

I have set up a linux box with a Git repository (using xinetd).

I have enabled receive-pack for the git daemon to enable pushing to the repository.

Here's my current testing workflow:

  1. On git server, run:

mkdir something

cd something

git init --bare

  1. On a client box:

git clone git://server/repo

(msg about cloning an empty repository)

  1. Perform some commits to the cloned repository.

  2. git push

getting this msg:

Counting objects: 8, done. Compressing objects: 100% (3/3) done, Writing objects: 100% (6/6) 

This does not finish. I have introduced only a small change, so this should be completed very quickly.

am i doing something wrong here?

like image 373
lysergic-acid Avatar asked Aug 18 '11 08:08

lysergic-acid


People also ask

Why is my git push not working?

If git push origin master not working , all you need to do is edit that file with your favourite editor and change the URL = setting to your new location. Assuming the new repository is correctly set up and you have your URL right, you'll easily be able to push and pull to and from your new remote location.

Why is git push being rejected?

A commit gets rejected and causes a failed to push some refs to error because the remote branch contains code that you do not have locally. What this means is that your local git repository is not compatible with the remote origin.

What happens if git push is interrupted?

The upstream Git repository will be oblivious to your attempted push, and no change will occur upstream. Unfortunately however, as it doesn't do anything with the half-pushed files, it doesn't store it and then expect a continuation of the push later on either.

What is flag git push?

This option overrides the "fast forward" restriction and matches our local branch to the remote branch. The --force flag allows you to order Git to do it anyway. When you change history, or when you want to push changes that are inconsistent with the remote branch, you can use push --force .


2 Answers

If you are using msysgit - they have just released a version that allows a config option to stop git hanging.

Fix is for https://github.com/msysgit/git/issues/101 in release https://github.com/msysgit/msysgit/releases/tag/Git-1.9.4-preview20140611

You can fix it by setting

git config --global sendpack.sideband false 
like image 134
Adrian Cornish Avatar answered Sep 22 '22 12:09

Adrian Cornish


The issue is with mgitsys client

Read more here: MGitsys Bug

As a workaround, i am using an older version: git version 1.7.4.rc1.3197.gbf965

This one doesn't have this bug in it.

I have placed this specific build in my SkyDrive public folder, link: http://sdrv.ms/MeuWTD

Hopefully it will be fixed in the near future.

like image 23
lysergic-acid Avatar answered Sep 19 '22 12:09

lysergic-acid