[Kde-games-devel] Cannot use "git push"

Ian Wadham iandw.au at gmail.com
Tue Oct 23 00:54:49 UTC 2012


Found it!!!  Full story below.

On 23/10/2012, at 9:40 AM, Albert Astals Cid wrote:
> El Dimarts, 23 d'octubre de 2012, a les 09:32:09, Ian Wadham va escriure:
>> On 23/10/2012, at 5:53 AM, Albert Astals Cid wrote:
>>> El Dilluns, 22 d'octubre de 2012, a les 21:53:44, Ian Wadham va escriure:
>>>> My last successful "git push" was Saturday 2012-10-20 11:34 am UTC, late
>>>> on
>>>> Saturday evening my time.  During the 48 hours since then, I have been
>>>> 
>>>> trying to push other changes, but keep getting the message:
>>>>   fatal: The remote end hung up unexpectedly
>>>> 
>>>> Does anyone know what is going on?  Or how I can find out what the
>>>> problem
>>>> is?
>>> 
>>> What does
>>> 
>>> GIT_TRACE=true
>>> export GIT_TRACE
>>> YOUR_GIT_COMMAND_HERE
>>> 
>>> say?
>> 
>> @Albert: It is not any more informative … :-)
>> 
>> Tara:/kdedev/games/kjumpingcube>GIT_TRACE=true
>> Tara:/kdedev/games/kjumpingcube>export GIT_TRACE
>> Tara:/kdedev/games/kjumpingcube>git push origin master
>> trace: built-in: git 'push' 'origin' 'master'
>> fatal: The remote end hung up unexpectedly
> 
> That is very weird, it should give something like
> trace: run_command: 'ssh' 'git at git.kde.org' 'git-receive-pack '\''/kdelibs'\'''
> before failing on ssh.

It is not failing on SSH …

> Are you sure that repo is not corrupt?

Yes.  It is clean.  I had cloned it again and re-applied my changes.

> Can you paste the output of
> git config -l --local
> when run on that kjumbpingcube folder?

Not necessary now ... I googled and found:
http://www.btaz.com/misc/fatal-the-remote-end-hung-up-unexpectedly/

The repository URL for "push" is whatever you used for "clone",
regardless of URL and "pushInsteadOf" in ~/.gitconfig.

For KGoldrunner, I used "git clone kde:kgoldrunner" and all my pushes worked.

For KJumpingCube, KSudoku and Kubrick I used the command helpfully
given at the top of each repository's main page on projects.kde.org.

But that sets up your clone as read-only.  I thought "pushInsteadOf" etc.
would override that, but as a German friend of mine used to say, years
ago, "Thinking is a matter of luck, Ian!" … "Denken ist glucksache(?)"

Moral: Always use "git clone kde:<name>" if you intend to edit.

I have used "git config --edit" to change the offending repositories to
read/write access, as detailed in the above link.

Thanks very much for your help, Albert and Wolfgang.

All the best, Ian W.

P.S. I find it appalling that, in the 21st century, such an important piece
of software as GIT can have such an uninformative error message.



More information about the kde-games-devel mailing list