Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gitolite push error

Tags:

git

gitolite

I have problem with my git, when I push my changes, git sends me this error:

git FATAL: split conf set, gl-conf not present for "name of repository"

What Can I do? Or how can I caused this problem? Thanks for your help.

Meph

like image 869
Meph- Avatar asked Mar 26 '13 16:03

Meph-


2 Answers

How did you create the remote repository? If you manually create a bare clone of your repository and moved it to the repository folder of Gitolite there are a couple of things which need to be setup manually:

  1. Change the owner to the Gitolite user, e.g. chown -R git:users
  2. Change the permissions for folders and files, e.g. chmod -R 755 myproject.git
  3. Check if there is gl-conf in the project.git/ folder. If not copy one from another working Gitolite project. Normally it gets setup automatically when you use gitolite-admin to configure a new project. Here is what the file looks like.
# gl-conf
%one_repo = (
  'myproject' => {
    'meph' => [
      [
        4,
        'RW+',
        'refs/.*'
      ]
    ]
  }
);
like image 99
JJD Avatar answered Sep 28 '22 02:09

JJD


It seems that the file gl-conf is missing. You can create it on your own (see answer by JDD) or more simple just run the following command – gitolite will take care of the rest:

gitolite setup

The problem can be caused if you migrate a bare repository to gitolite. A gl-conf file is needed by gitolite to store the “compiled” configuration only for the specific repository. The data is taken from gitolite-admin/conf/gitolite.conf (the repository, where you put the access configuration to the repositories in).

like image 39
Jan Avatar answered Sep 28 '22 03:09

Jan