gitolite-admin and gitolite server on same machine

507 views
Skip to first unread message

gaki...@gmail.com

unread,
Jan 28, 2016, 11:11:23 AM1/28/16
to gitolite




Due to the special nature of the project, I need to gitolite-admin on the same server , but I modified the configuration file and push repository get an error :


[git@localhost ~]$ ls
bin dd gitolite projects.list repositories test
[git@localhost ~]$ cd dd/
[git@localhost dd]$ ls
gitolite-admin
[git@localhost dd]$ cd gitolite-admin/
[git@localhost gitolite-admin]$ ls
conf keydir
[git@localhost gitolite-admin]$ git push origin master
The authenticity of host 'localhost (127.0.0.1)' can't be established.
ECDSA key fingerprint is 75:6e:cc:8d:23:ba:c6:33:e4:14:ec:18:7d:56:a5:ca.
Are you sure you want to continue connecting (yes/no)? yes
Failed to add the host to the list of known hosts (/home/git/.ssh/known_hosts).
git@localhost's password:
对象计数中: 4, 完成.
Delta compression using up to 4 threads.
压缩对象中: 100% (3/3), 完成.
写入对象中: 100% (4/4), 360 bytes | 0 bytes/s, 完成.
Total 4 (delta 1), reused 0 (delta 0)
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 (you may need to install the Gitolite::Hooks::Update module) (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) 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 git@localhost:repositories/gitolite-admin.git
! [remote rejected] master -> master (hook declined)
error: 无法推送一些引用到 'git@localhost:repositories/gitolite-admin.git'


I hope who can help me~

Sitaram Chamarty

unread,
Jan 28, 2016, 11:29:10 AM1/28/16
to gaki...@gmail.com, gitolite
On 28/01/16 20:28, gaki...@gmail.com wrote:
>
>
>
>
> Due to the special nature of the project, I need to gitolite-admin on the same server , but I modified the configuration file and push repository get an error :
>
>
> [git@localhost ~]$ ls
> bin dd gitolite projects.list repositories test
> [git@localhost ~]$ cd dd/
> [git@localhost dd]$ ls
> gitolite-admin
> [git@localhost dd]$ cd gitolite-admin/
> [git@localhost gitolite-admin]$ ls
> conf keydir
> [git@localhost gitolite-admin]$ git push origin master

try "gitolite push origin master" (assuming the gitolite command is in
$PATH)

see section 3 of "emergencies.html" in gitolite pages
Reply all
Reply to author
Forward
0 new messages