Search code examples
linuxgitgitoliteinotifywait

Gitolite and non-bare repos?


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?


Solution

  • 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.