Support for bare repo

Now we can use git_hooks inside bare repo.