I am trying to run Gitolite on my LEDE-Project router. I followed the instructions here to satisfactorily install the required dependencies on my router. My router tells Git version 2.11.0, like the computer on which I run this. The Git package on LEDE-Project and OpenWRT can be found here , as they share these repositories.
When I create a new Gitolite-style repository, I get an error message similar to this:
2017-03-06.03: 11: 23 28046 die could not symbolically link /root/.gitolite/hooks/common/update to gitolite-admin.git / hooks <> at / root / gitolite / src / lib / Gitolite / Conf / Store.pm line 368. <>
After a good night’s sleep, I ended up working out the reason for this on this particular mailing list , which suggested that the directories were git init --barenot git init --bareright.
Try "git init --bare" in an empty directory and tell me if you see the.git / hooks directory in it.
Assuming you don’t do this, you will have to fix it somehow. Gitolite expects "git init --bare" to create a hooks directory.
Sounds like a reasonable guess. My car does it just fine.
git init --bare foo
Initialized empty Git repository in /home/makoto/workspace/foo/foo/
cd ~/foo
ls -la
drwxrwxr-x 7 makoto makoto 4096 Mar 6 13:15 .
drwxrwxr-x 3 makoto makoto 4096 Mar 6 13:15 ..
drwxrwxr-x 2 makoto makoto 4096 Mar 6 13:15 branches
-rw-rw-r-- 1 makoto makoto 66 Mar 6 13:15 config
-rw-rw-r-- 1 makoto makoto 73 Mar 6 13:15 description
-rw-rw-r-- 1 makoto makoto 23 Mar 6 13:15 HEAD
drwxrwxr-x 2 makoto makoto 4096 Mar 6 13:15 hooks
drwxrwxr-x 2 makoto makoto 4096 Mar 6 13:15 info
drwxrwxr-x 4 makoto makoto 4096 Mar 6 13:15 objects
drwxrwxr-x 4 makoto makoto 4096 Mar 6 13:15 refs
On my router ... not so much.
git init --bare foo
Initialized empty Git repository in /root/foo/
cd foo/
ls -la
drwxr-xr-x 4 root root 4096 Mar 6 13:21 .
drwxr-xr-x 1 root root 4096 Mar 6 13:21 ..
-rw-r--r-- 1 root root 23 Mar 6 13:21 HEAD
-rw-r--r-- 1 root root 66 Mar 6 13:21 config
drwxr-xr-x 4 root root 4096 Mar 6 13:21 objects
drwxr-xr-x 4 root root 4096 Mar 6 13:21 refs
, Gitolite, , hooks/ folder . , .
, git init --bare? , , , .