gitolite installation issue

后端 未结 4 1864
悲&欢浪女
悲&欢浪女 2021-02-19 05:49

Has any one tryied the easy install option of gitolite?
I am trying to install gitolite from my windows (workstation ) to a solaris box.

[command used to ins         


        
相关标签:
4条回答
  • 2021-02-19 06:11

    I did precisely the same installation (Windows to Solaris), and it is worth it.

    I did it:

    • from a git bash session (not a DOS session),
    • with $HOME correctly set (i.e. referencing a directory where my .ssh public/private keys are stored, including the one for the user present on the Solaris server side)
    0 讨论(0)
  • 2021-02-19 06:16

    This can occur if on the server, the git user has a key in ~/.ssh/authorized_keys for the remote user that is not prefixed with the command variable:

    % cat ~/.ssh/authorized_keys
    ssh-rsa ...... user@host
    # gitolite start
    command="/home/gituser/.... user@host
    # gitolite end
    %
    

    Just remove the first line and you're good to go.

    0 讨论(0)
  • 2021-02-19 06:22

    We fixed this by reading the https://github.com/sitaramc/gitolite/blob/pu/doc/ssh-troubleshooting.mkd document. Specifically the section that mentions that we did not heed the instructions. "These problems happen to the person who has utterly failed to read/heed the message that shows up at the end of running the gl-easy-install" Remove all files. Re-run the install, and HEED the instructions :)

    0 讨论(0)
  • 2021-02-19 06:29

    Most of times, this seems to be because ssh doesn't pass the right public key to use to gitolite. Cf. "Does Not Appear to be a Git Repository". A comment in this article links to the gitolite author's website, especially to the 'Appendix #2', which explains how to know "which key is which".

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