Gitosis requires password even though the public key is given

前端 未结 11 767
挽巷
挽巷 2021-02-07 03:51

I\'m confronted with some problems when trying to configure gitosis on my Archlinux

http://wiki.archlinux.org/index.php/Setting_Up_Git_ACL_Using_gitosis

I referr

11条回答
  •  我在风中等你
    2021-02-07 04:18

    Having moved to a new Ubuntu machine and run into this question myself, I saw a couple answers on here that got me moving in the right direction, namely using an absolute path to the .git files for each repository.

    Experimenting a bit I noticed paths relative to the git user's home directory also worked, which shortened something like:

    git@host:/var/git/repositories/project.git
    

    down to

    git@host:repositories/project.git
    

    Playing a bit more I tried moving the project files from repositories right into git's home directory; now only the project is required:

    git@host:project.git
    

    It's a bit hacky, but I doubt will cause any harm. Would be good to know what changed, as I was hosting gitosis on another Ubuntu (older) and was able to have the projects inside the repositories directory with the last notation from above.

提交回复
热议问题