Skip to content

Using Gitolite repositories

jeff-h edited this page Jun 29, 2011 · 7 revisions

Gitolite (https://github.com/sitaramc/gitolite) is a popular system for managing GIT repositories, and handles both the creation of new repositories and the user access control to those repositories.

Configuring your Gitolite repository for use with Sparkleshare

Each Sparkleshare user will need RW access to your Gitolite repository. They will also need their public key to be added to Gitolite. This is part of the normal Gitolite configuration process. If you are experiencing problems, it may be helpful to confirm that the user can access the Gitolite repository in the normal fashion eg attempt a checkout of the repository via the command line first, and when this works simply delete that local copy.

Adding your Gitolite repository as a remote folder in Sparkleshare

Gitolite supports several different syntaxes for the address of a repository. However, when entering the address for a Gitolite repository as a new remote folder into Sparkleshare, it appears that the following specific syntax is required:

Server type: My own server
Address: gituser@server
Folder name: gitrepo or gitrepo.git (either should work) where gitrepo is the name of your Git repository.

No slashes or colons are required anywhere. Even though your git repo is probably in a subdirectory ie has a path such as ~/repositories/mygitrepo.git you should not enter any part of the actual server path into Sparkleshare.

Refer to https://github.com/hbons/SparkleShare/issues/166 for more information.