ericpaulbishop / redmine_git_hosting

A ChiliProject/Redmine plugin which makes configuring your own git hosting easy.
186 stars 37 forks source link

Can not push when use http/https protocol #166

Open maxidr opened 12 years ago

maxidr commented 12 years ago

When try to push a project using http or https (like git remote add origin http://maxidr@dev.testserver/chiliproject/test-repo.git) show the error:

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: Can't locate Gitolite/Hooks/Update.pm in @INC (@INC contains:  /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at hooks/update line 7.
remote: BEGIN failed--compilation aborted at hooks/update line 7.
remote: error: hook declined to update refs/heads/master

But, when use ssh protocol works ok.

I'm using the version 0.4.5x of the extension in ChiliProject 3.2.1.221a2e73c

Jehreg commented 12 years ago

Same problem. Chiliproject commit 0e1a622a6a7d6 and redmine_git_hosting commit c70a17bcd7d57f72101a

Jehreg commented 12 years ago

Found it. We cannot use Gitolite 3.x

git clone git://github.com/sitaramc/gitolite
cd gitolite
git checkout v2.3.1
maxidr commented 12 years ago

@Jehreg do you mean that it works with version 2?

xelerance commented 12 years ago

Yes, that's exactly what I mean. Version 2 = good. Version 3 = not so much