How to config the gitolite repo path the way I don't need to bypass gitolite? Why gitlab app creates repos on the right path?
Created by: maurodias
I've installed Gitlab with gitolite, the fullsite works fine, its creating the repos just fine...
but then, when I try to push some code from a dev machine, it raises an error...
git init
git remote add origin ssh://[email protected]:10000/test_of_mine.git
git add .
git commit -m "first commit"
git push origin master
that outputs:
fatal: '/test_of_mine.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
When I bypass gitolite, adding a remote with full path, it finds the repo, but with another error, caused for bypassing
git remote add origin ssh://[email protected]:10000/~git/repositories/test_of_mine.git
which returns
Delta compression using up to 4 threads.
Compressing objects: 100% (329/329), done.
Writing objects: 100% (667/667), 785.81 KiB, done.
Total 667 (delta 327), reused 639 (delta 311)
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
To ssh://[email protected]:10000/~git/repositories/test_of_mine.git
! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'ssh://[email protected]:10000/~git/repositories/test_of_mine.git'
Why I'm getting this errors? Am I missing any path config?
How to config the gitolite repo path, the way I don't need to bypass gitolite?
And why the gitlab app works fine, creating repositories on the right path, without raises any error?