|
![](https://seccdn.libravatar.org/avatar/19d6d588001879430ddcedc3493348b9f9f8f576126e024e810c392eff7da7a8?s=16&d=retro) |
4ce244f |
Care was taken to make the gitolite deployment from RPM as close to the
|
|
![](https://seccdn.libravatar.org/avatar/19d6d588001879430ddcedc3493348b9f9f8f576126e024e810c392eff7da7a8?s=16&d=retro) |
4ce244f |
upstream's way of installing gitolite. Therefore, the documentation shipped
|
|
![](https://seccdn.libravatar.org/avatar/19d6d588001879430ddcedc3493348b9f9f8f576126e024e810c392eff7da7a8?s=16&d=retro) |
4ce244f |
with the package should be useful and gl-install a gl-easy-install scripts
|
|
![](https://seccdn.libravatar.org/avatar/19d6d588001879430ddcedc3493348b9f9f8f576126e024e810c392eff7da7a8?s=16&d=retro) |
4ce244f |
should work.
|
|
![](https://seccdn.libravatar.org/avatar/19d6d588001879430ddcedc3493348b9f9f8f576126e024e810c392eff7da7a8?s=16&d=retro) |
4ce244f |
|
|
![](https://seccdn.libravatar.org/avatar/19d6d588001879430ddcedc3493348b9f9f8f576126e024e810c392eff7da7a8?s=16&d=retro) |
4ce244f |
The "easy" installation should be done as follows:
|
|
![](https://seccdn.libravatar.org/avatar/19d6d588001879430ddcedc3493348b9f9f8f576126e024e810c392eff7da7a8?s=16&d=retro) |
4ce244f |
|
|
![](https://seccdn.libravatar.org/avatar/b6cc8862769a23d5a795746bfdec057154bb5f42a8057bac0d2c3c0b4b68dc68?s=16&d=retro) |
716ea29 |
1.) Add your key to ~gitolite/.ssh/authorized_keys
|
|
![](https://seccdn.libravatar.org/avatar/b6cc8862769a23d5a795746bfdec057154bb5f42a8057bac0d2c3c0b4b68dc68?s=16&d=retro) |
716ea29 |
2a.) If gitolite is running on the same machine, that you are using, run:
|
|
![](https://seccdn.libravatar.org/avatar/b6cc8862769a23d5a795746bfdec057154bb5f42a8057bac0d2c3c0b4b68dc68?s=16&d=retro) |
716ea29 |
gl-easy-install gitolite localhost $LOGNAME
|
|
![](https://seccdn.libravatar.org/avatar/b6cc8862769a23d5a795746bfdec057154bb5f42a8057bac0d2c3c0b4b68dc68?s=16&d=retro) |
716ea29 |
2b.) If gitolite is running on another machine, run on your local machine:
|
|
![](https://seccdn.libravatar.org/avatar/b6cc8862769a23d5a795746bfdec057154bb5f42a8057bac0d2c3c0b4b68dc68?s=16&d=retro) |
716ea29 |
gl-easy-install gitolite <hostname> <your_gitolite_username>
|
|
![](https://seccdn.libravatar.org/avatar/19d6d588001879430ddcedc3493348b9f9f8f576126e024e810c392eff7da7a8?s=16&d=retro) |
4ce244f |
3.) gitolite-admin is cloned. Now you can add repositories by modyfing
|
|
![](https://seccdn.libravatar.org/avatar/19d6d588001879430ddcedc3493348b9f9f8f576126e024e810c392eff7da7a8?s=16&d=retro) |
4ce244f |
configuration there and pushing it back.
|
|
![](https://seccdn.libravatar.org/avatar/19d6d588001879430ddcedc3493348b9f9f8f576126e024e810c392eff7da7a8?s=16&d=retro) |
4ce244f |
|
|
![](https://seccdn.libravatar.org/avatar/19d6d588001879430ddcedc3493348b9f9f8f576126e024e810c392eff7da7a8?s=16&d=retro) |
4ce244f |
The other way to do that would be to su to gitolite user, run "gl-install",
|
|
![](https://seccdn.libravatar.org/avatar/19d6d588001879430ddcedc3493348b9f9f8f576126e024e810c392eff7da7a8?s=16&d=retro) |
4ce244f |
follow the instructions and then manually populate the gitolite-admin.git
|
|
![](https://seccdn.libravatar.org/avatar/19d6d588001879430ddcedc3493348b9f9f8f576126e024e810c392eff7da7a8?s=16&d=retro) |
4ce244f |
repository (and recompile the configuration, as you'd be instructed).
|
|
![](https://seccdn.libravatar.org/avatar/19d6d588001879430ddcedc3493348b9f9f8f576126e024e810c392eff7da7a8?s=16&d=retro) |
4ce244f |
|
|
![](https://seccdn.libravatar.org/avatar/19d6d588001879430ddcedc3493348b9f9f8f576126e024e810c392eff7da7a8?s=16&d=retro) |
4ce244f |
To access the repositories, always use "gitolite" as user name. Gitolite
|
|
![](https://seccdn.libravatar.org/avatar/19d6d588001879430ddcedc3493348b9f9f8f576126e024e810c392eff7da7a8?s=16&d=retro) |
4ce244f |
doesn't use UNIX users/permissions to implement access control, it implements
|
|
![](https://seccdn.libravatar.org/avatar/19d6d588001879430ddcedc3493348b9f9f8f576126e024e810c392eff7da7a8?s=16&d=retro) |
4ce244f |
its own and determines the user name from the key used.
|