I am running a Debian system, and have recently installed gitolite using the DEB package.
Here is my problem:
I have tried to clone the gitolite-admin.git repository (which is used for configuring the gitolite installation for all repositories that are you wish gitolite to manage for you).
My first attempt was exactly how the instructions state:
git clone gitolite@server:gitolite-admin
I received the following error:
fatal: 'gitolite-admin' does not appear to be a git repository fatal: The remote end hung up unexpectedly
Note: This same thing happens if I replace gitolite-admin with gitolite-admin.git
HOWEVER, when I do the following:
git clone gitolite@server:~/repositories/gitolite-admin.git
This line successfully clones the repository to my local workstation.
Now, I have no problem adding the extra text to the filepath, however I am told that this is incorrect by the documentation.
The following link ( http://sitaramc.github.com/gitolite/doc/3-faq-tips-etc.html ) states that "adding repositories/ at the start of the repo name in the git clone" is a common error/mistake. It also states that "In fact gitolite prepends $REPO_BASE internally, so you shouldn't also do the same thing!"
My .gitolite.rc file contains the following line for $REPO_BASE:
[Located in /home/gitolite/.gitolite.rc] $REPO_BASE="repositories";
My question is, what is wrong with my configuration, that causes the $REPO_BASE not to prepend my git clone?
If you need any further information, please leave a comment stating what info you need and I will be happy to oblige.
- git version: 220.127.116.11
- gitolite version: 1.5.4-2~bp (this is from lenny-backports, because I am using Debian Lenny and gitolite does not come standard with Lenny)
- Debian's installation creates the user "gitolite" to manage gitolite repos with.