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
  • #224

Closed
Open
Created Dec 22, 2011 by Administrator@rootOwner

Upgrading the VM to use gitolite is painful

Created by: wmertens

This is really a bunch of issues, sorry. Basically we're using the VM image with version 1.2 and we upgraded to 2.0, and then we wanted to upgrade to use gitolite. These are the issues I ran into:

  • Gitolite doesn't get installed by the rake install and it's not a package in ubuntu
  • I then used the gitlabhq_install.git repository to download the ubuntu_gitolite.sh script. This script has DOS line endings! There's no way that that works. I had to strip the line endings with tr \\r < ubuntu_gitolite.sh > t.sh and then run bash t.sh
  • The install script should change the UMASK for the user instead of forcing the user to hunt for the setting. A simple sed -i~ 's/0077/0007/' or similar (I keep mixing up the -i behavior on different sed versions) should do the trick
  • The gitolite install complained about the ssh key being in authorized_keys twice (I put it in there so ssh git@localhost works) and I had to manually remove the key I added
  • Then I ran the bundle exec rake gitolite_rebuild RAILS_ENV=production and that kept warning about the project users not having pubkeys installed. Afterwards I looked at the authorized_keys and it did put all the users in there and it does seem to work so perhaps adding the user keys and upgrading the repositories has to be reversed.

Anyway now it works :-)

Assignee
Assign to
Time tracking