Gitolite git clone error

后端 未结 7 2033
小鲜肉
小鲜肉 2020-12-01 15:39

I am trying to setup gitolite on my server (Macos server).

I followed the instructions in the INSTALL document found here : http://sitaramc.github.com/gitolite/doc/1

相关标签:
7条回答
  • 2020-12-01 16:09

    Having just dealt with this for a third time after forgetting the first two times, I figure it can't be unusual.

    $ git clone git@hugo:gitolite-admin
    Cloning into gitolite-admin...
    fatal: The remote end hung up unexpectedly
    

    At least one reason for this is that the gitolite user must have a login shell - making a system user won't work for some reason.. it just falls over, causing the error above.

    Also, for the ssh test, you must switch off PTYs on the command line otherwise ssh simply won't work - I think maybe it worked with older versions of ssh but doesn't on anything I have:

    $ ssh git@hugo
    PTY allocation request failed on channel 0
    
    $ ssh -T git@hugo
    hello key, this is git@hugo running gitolite3 v3.01-10-g699bafa on git 1.7.10
    

    (why it thinks I'm called 'key' is another config issue I haven't solved yet).

    0 讨论(0)
提交回复
热议问题