Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #1782

Closed
Open
Created Oct 24, 2012 by Administrator@rootOwner

Upgrade guide 2.9 to 3.0 typo

Created by: iszak

It appears that the sed command in the migration guide for 2.9 to 3.0 causes the .gitolite.rc config key to be malformed and thus breaks new repositories and possibly other side effects. As an example you can see it with

> echo '$GL_GITCONFIG_KEYS="";' | sed 's/\(GL_GITCONFIG_KEYS\s*=>*\s*\).\{2\}/"\.\*"/g'
> $".*";

The problem is the replacement pattern is missing the back reference to the group. If we change it to;

> echo '$GL_GITCONFIG_KEYS="";' | sed 's/\(GL_GITCONFIG_KEYS\s*=>*\s*\).\{2\}/\1"\.\*"/g'
> $GL_GITCONFIG_KEYS=".*";

It works as expected, so to use the same command in the wiki it should be;

sudo -u git -H sed -i "s/\(GIT_CONFIG_KEYS\s*=>*\s*\).\{2\}/\1'\.\*'/g" /home/git/.gitolite.rc

and for v2 of Gitolite

sudo -u git -H sed -i 's/\(GL_GITCONFIG_KEYS\s*=>*\s*\).\{2\}/\1"\.\*"/g' /home/git/.gitolite.rc

My apologies if this isn't the correct means for submitting a correction to the wiki.

Assignee
Assign to
Time tracking