Redmine - Git push failed [remote rejected] hook rejected

I had a problem clicking on my server hosting redmine and repositories. I have a gitolite redmine plugin for redmine and the latest gitolit v3.5.x. When I clone the ie repository

git clone git@<ip address>:repositories/test-project-redmine.git 
// btw: i do get asked for password even though i have send my public key to redmine ?

this repository is cloned without problems. When I create a simple readme.txt file and then I try to return it back to the repository, I get the following

enter image description here

anyone that might cause this problem? Thank:)

Update:

I launched find / -path '*Gitolite/Hooks/Update.pm' -print 2>/dev/nulland yes, the files exist. I also checked the file permissions for the user 'git'who runs the repositories, and he has all the necessary permissions. The image is attached.

enter image description here

however, the search returned nothing regarding perl

github - . , , :

__DATA__
#!/usr/bin/perl

BEGIN {
  exit 0 if exists $ENV{GL_BYPASS_UPDATE_HOOK};
}

use strict;
use warnings;
...

:

/<git user home dir>/bin/lib/Gitolite/Hooks/Update.pm
/<git user home dir>/gitolite/src/lib/Gitolite/Hooks/Update.pm
/<git user home dir>/.gitolite/hooks/common/update

...?

+4
1

, StackOverflow :

use lib '/path/you/want/to/add';

script, use require. ! decennary, perl , :)

0

Source: https://habr.com/ru/post/1537306/


All Articles