On Sat, May 5, 2012 at 4:00 PM, Miklos Espak <
esp...@gmail.com> wrote:
> Hi,
>
> I have set up gitolite v3, it works well through git, http and ssh. I can
> also clone through https, but if I push, I get the following "classic"
> error:
>
> espakm@zawinul:~/tmp/git/e$ git push origin master
> remote: Empty compile time value given to use lib at hooks/update line 6
> remote: Use of uninitialized value in require at hooks/update line 7.
> remote: Use of uninitialized value in require at hooks/update line 7.
> remote: Can't locate Gitolite/Hooks/Update.pm in @INC (@INC contains:
> /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi
> /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl
> /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi
> /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl
> /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at
> hooks/update line 7.
> remote: BEGIN failed--compilation aborted at hooks/update line 7.
> remote: error: hook declined to update refs/heads/master
> To https://me:********@
cmicdev.cs.ucl.ac.uk/git/NiftyGuide.git
> ! [remote rejected] master -> master (hook declined)
> error: failed to push some refs to
> 'https://me:******@
cmicdev.cs.ucl.ac.uk/git/NiftyGuide.git'
>
> I read the documentation about this error, but it's related to ssh that
> works fine here.
>
> I ran git update-server-info in the repository.
>
> The Apache2 httpd.conf has this:
>
> ----------------------------------
> SetEnv GIT_PROJECT_ROOT /data/gitolite/repositories
> SetEnv GIT_HTTP_EXPORT_ALL
>
> ScriptAliasMatch \
> "(?x)^/git/(.*/(HEAD | \
> info/refs | \
> objects/(info/[^/]+ | \
> [0-9a-f]{2}/[0-9a-f]{38} | \
> pack/pack-[0-9a-f]{40}\.(pack|idx)) | \
> git-(upload|receive)-pack))$" \
> /usr/libexec/git-core/git-http-backend/$1
>
> <LocationMatch "^/git/.*/git-receive-pack$">
> AuthType Basic
> AuthName "git"
> AuthUserFile "/paramedic/cmicdev/data/apache/access/cmic.htpasswd"
> Require valid-user
> </LocationMatch>
> ----------------------
>
> The update hook of the project links to that of gitolite:
>
> [root@cmicdev conf]# ls -l
> /data/gitolite/repositories/NiftyGuide.git/hooks/update
> lrwxrwxrwx 1 git apache 45 May 1 12:42
> /data/gitolite/repositories/NiftyGuide.git/hooks/update ->
> /data/gitolite//.gitolite/hooks/common/update
>
> I have no idea what else to check.
>
> Could someone help me please?
>
> Thank you,
> Miklos
>
>