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
  • Merge requests
  • !1311

Closed
Created Aug 27, 2012 by Administrator@rootOwner
  • Report abuse
Report abuse

Fix create repo

  • Overview 1
  • Commits 2
  • Changes 3

Created by: jouve

Hello,

this request fixes #1257 (closed).

This bug happens because gitolite does not create the bare repository in /home/git/repositories if we only add the repo line to the gitolite.conf file. It also need a line with rights + key. ex, just adding :

repo    toto

gitolite won't create the repository but with :

repo    toto
  RW+    = somekey

gitolite will create a bare repository : /home/git/repositories/toto.git.

If a user creates a repo and he has no ssh key, the first case apply, gitolite does not create a repo and of course gitlab can't see the post-receive file. To fix that, we must add a default key to the repo.

First commit does this by adding gitlab's key with RW+ rights to each repo. This is not a problem because gitlab is already admin of all repos.

Second commit provide a task to fix existing repositories.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: github/fork/jouve/fix_create_repo