Skip to content

Instantly share code, notes, and snippets.

@dzaporozhets
Created October 24, 2012 13:58
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dzaporozhets/3946188 to your computer and use it in GitHub Desktop.
Save dzaporozhets/3946188 to your computer and use it in GitHub Desktop.
Fix gitolite for gitlab 3
# GITOLITE 3
sudo -u git -H sed -i "s/\(GIT_CONFIG_KEYS\s*=>*\s*\).\{2\}/\1'\.\*'/g" /home/git/.gitolite.rc
# GITOLITE 2
sudo -u git -H sed -i 's/\(GL_GITCONFIG_KEYS\s*=>*\s*\).\{2\}/\1"\.\*"/g' /home/git/.gitolite.rc
@SaitoWu
Copy link

SaitoWu commented Oct 24, 2012

PLEASE MAKE SURE:

/home/git/.gitolite.rc file:

# gitolite v2
$GL_GITCONFIG_KEYS = ".*";
# gitolite v3
GIT_CONFIG_KEYS = '.*', 

@Philzen
Copy link

Philzen commented Oct 25, 2012

On FreeBSD those sed commands wouldn't work - just make sure you edit /home/git/.gitolite.rc as advised by SaitoWu above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment