- Gitolite Essentials
- Sitaram Chamarty
- 242字
- 2021-07-16 12:10:04
Gitolite and the Git control flow
Conceptually, Gitolite is a very simple program. To see how it controls access to a Git repository, let us first look at how control flows from the client to the server in a normal git operation (say git fetch
) when using plain ssh
:

When the user executes a git clone, fetch, or push, the Git client invokes ssh
, passing it a command (either git-upload-pack
or git-receive-pack
, depending on whether the user is reading or writing). The local ssh client passes this to the server, and assuming authentication succeeds, that command gets executed on the server.
With Gitolite installed, the ssh
daemon does not invoke the git-upload-pack
or git-receive-pack
directly. Instead, it calls a program called gitolite-shell
, which changes the control flow as follows:

First, notice that nothing changes on the Git client side in any way; the changes are only on the server side. In fact, unless an access violation happens and an error message needs to be sent to the user, the user may not even know that Gitolite is installed!
Second, notice the red link from Gitolite's shell program to the git-upload-pack
program. This call does not happen if Gitolite determines that the user does not have the appropriate access to the repo concerned. This access check happens for both read (that is, git fetch
and git clone
commands) and write (git push
) operations; although for writes, there are more checks that happen later.
- Getting Started with MariaDB
- Android游戲開發案例與關鍵技術
- Chef:Powerful Infrastructure Automation
- 基于神經網絡的監督和半監督學習方法與遙感圖像智能解譯
- 電子設備及系統人機工程設計(第2版)
- Working with Linux:Quick Hacks for the Command Line
- Flink原理與實踐
- MPC5554/5553微處理器揭秘
- 教育創新與創新人才:信息技術人才培養改革之路(四)
- Oracle 11g基礎與提高
- Cisco UCS Cookbook
- 工程地質地學信息遙感自動提取技術
- 人工智能基礎
- Windows Server 2012 Automation with PowerShell Cookbook
- TensorFlow 2.0卷積神經網絡實戰