dongtan8532 2013-01-31 22:15 采纳率: 0%
浏览 31
已采纳

与gitolite一起使用围棋语言

Does know how to use Google's go languages clever get command with Gitolite? It works great with Google Code and Github as follows:

go get code.google.com/p/go.example/hello

or

go get github.com/alphazero/Go-Redis

But my gitolite access look more like:

git clone git@mygitolite:myproject

Any suggestions?

  • 写回答

2条回答 默认 最新

  • douliangbian7323 2013-01-31 22:21
    关注

    It has nothing to do with gitolite.
    Gitolite is just an authorization layer, which will accept or deny your git clone/push/pull command, depending on your username.

    If you can declare a git repo as a source for go, you can use it.
    Gitolite will just check who you are, but won't otherwise affect how that repo is used with go.


    The OP Peter Krnjevic refines the issue:

    The thing with go, is that it pulls the repo name from the directory structure, so for instance:

    ~/gocode/src/github.com/me/myproject 
    

    is automagically transformed into

    git clone github.com/me/myproject. 
    

    But how can gitolite names be transformed into a path?

    I don't think you need to transform anything: if go is able to contact your git repo (GitHub or any other hosting repo server), gitolite will intercept the command and validate it (or deny it).
    You can plug gitolite on top of ssh or (as it is the case with git request done by go import) with https.

    But the main point is:

    • gitolite is on the server side
    • you should use it with an Apache sever (like, for instance, with my config), and not ssh, if you want to easily have your repos accessed with go imports.
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 mmocr的训练错误,结果全为0
  • ¥15 python的qt5界面
  • ¥15 无线电能传输系统MATLAB仿真问题
  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀