LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Cannot push with git. Error Message: "fatal: The remote end hung up unexpectedly" (https://www.linuxquestions.org/questions/linux-software-2/cannot-push-with-git-error-message-fatal-the-remote-end-hung-up-unexpectedly-655148/)

braclayrab 07-11-2008 12:48 PM

Cannot push with git. Error Message: "fatal: The remote end hung up unexpectedly"
 
A similar thread was already posted in the servers forum but I'm hoping it might get some attention here instead.
http://www.linuxquestions.org/questi...ssages-654630/

I'm able to clone using git but I cannot push my changes up. My client is on my macbook. Here's a sample session:

Quote:

macbook2:/ Al$ git clone git://mydomain.com/cs.git test
Initialized empty Git repository in /test/.git/
remote: Counting objects: 3, done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 3 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (3/3), done.
macbook2:/ Al$ cd test/
macbook2:testss Al$ git push origin master
fatal: The remote end hung up unexpectedly
I don't know how to debug this. I suspect it may be a permissions issue on the server. git-daemon's log doesn't show anything.

Thanks in advance!

braclayrab 07-11-2008 01:02 PM

Additional info:
I'm running git-daemon thru xinet.

Code:

service git
{
        disable                = no
        port                = 9418
        socket_type    = stream
        wait            = no
        user            = clay
        server          = /usr/bin/git-daemon
        server_args    = --base-path=/www --export-all --syslog --verbose --inetd
        log_on_failure  += USERID
# xinetd doesn't do this by default. bug #195265
}

The repository has read/write/execute granted to everybody.

braclayrab 07-11-2008 01:41 PM

Apparently I needed to enable the services...
Code:

service git
{
                disable                        = no
                port                        = 9418
        socket_type    = stream
        wait            = no
        user            = clay
        server          = /usr/bin/git-daemon
        server_args    = --base-path=/www --export-all --syslog --verbose --inetd --enable=upload-pack --enable=upload-archive --enable=receive-pack
        log_on_failure  += USERID
# xinetd doesn't do this by default. bug #195265
}

Hope this helps someone!


All times are GMT -5. The time now is 11:49 AM.