Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I thought I set up my key pairs correctly -- I can do git pulls. I can do git commits. But when I do a git push, it counts objects, decompresses, then says: fatal: the remote end hung up unexpectedly.

What's the issue here?

I'm a super user, so it's not folder writable / readable access problems -- it must be the way I set up the encryption key pair... how do I debug this ... since git pull works?

share|improve this question
    
What's the -1 for ? –  Dirk Apr 11 '10 at 8:27
    
Are you using git:// or ssh://? –  pehrs Apr 11 '10 at 8:52
    
ssh:// .............. –  Dirk Apr 11 '10 at 8:56

1 Answer 1

up vote 1 down vote accepted

Are you sure you have write access to the GIT repository?

  1. If you are you using the git:// protocol: You can't push over git:// without special settings. Write access defaults to disabled, as far as I know.
  2. If you are using the ssh:// protocol: Log in normally and check if you have write access to the git repository. Navigate to it and try to touch a new file. Then remove the new file.
share|improve this answer
    
can't write to the git repository ... even as a super user, unless i invoke sudo –  Dirk Apr 11 '10 at 9:11
    
So there is your problem. Make sure you have write access as the user. Typically you do this by creating/using a group (users, gitusers or similar) and then assigning that group to the repository. Give the group write access. You might have to fiddle a bit to ensure that new files are created with correct GID. –  pehrs Apr 11 '10 at 9:18
    
thanks a lot: another quick question: my ubuntu came with a www directory which contains all of our web content ... with root as owner and root as group. should i change this to a different owner / group? –  Dirk Apr 11 '10 at 9:23
    
nevermind ... got it! –  Dirk Apr 11 '10 at 9:43
    
I would upvote you; but I don't have rep :) –  Dirk Apr 11 '10 at 9:44

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.