Unable to push to certain Repos after 4.0 - 5.0 upgrade
Created by: sivaramsk
I recently upgrade from 4.0 to 5.0. I have two different groups under which there are couple of repos - like this
group1/repo1 group1/repo2 group1/repo3
group2/repo1 group2/repo2
The group1/repo1 has around 15 users using and has no issues for pushing after the upgrade. But the group2/repo1 is failing with the following error when trying to push. I saw some post with the same error https://github.com/gitlabhq/gitlabhq/pull/1719. But that was 6 months ago and I am not sure how relevant the problem is.
Counting objects: 13, done.
Delta compression using up to 4 threads.
Total 7 (delta 6), reused 0 (delta 0)
remote: Empty compile time value given to use lib at hooks/update line 10[K
remote: Use of uninitialized value in require at hooks/update line 11.[K
remote: Can't locate Gitolite/Hooks/Update.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at hooks/update line 11.[K
remote: BEGIN failed--compilation aborted at hooks/update line 11.[K
remote: error: hook declined to update refs/heads/SGBRANCH5_2[K
To [email protected]:legacy/sg.git
! [remote rejected] SGBRANCH5_2 -> SGBRANCH5_2 (hook declined)
error: failed to push some refs to '[email protected]:legacy/storegrid.git'
Done
As of now I worked around the issue by commenting out the line
use Gitolite::Hooks::Update;
in hooks update script. Since I don't use any update as of now, Am I right here?