Gitolite and non-bare repos?

2019-06-05 12:01发布

问题:

Currently, I am tracking my repository with inotifywait. And it supports only flat files, so I created non-bare repo actually with git.

But I decided to go to Gitolite and I can’t see anything about creating non-bare repo. Is there is an option?

回答1:

inotifywait waits for changes to files.

If you want to monitor changes at the server level (where gitolite operates, behind ssh), you will need to add a non-update hook, typically a post-receive one, which will checkout the bare repo somewhere monitored by inotifywait.