Patch #14527

Git-smart-http authentication by repository

Added by Ciprian Ciubotariu over 9 years ago. Updated over 9 years ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:


Category:SCM extra
Target version:-


This patch allows the repository name to differ from the project name.

We migrated to a multi-repository per project setup after the whole infrastructure (scripts, build servers etc.) was set up. At this point we considered that renaming all the repositories to match the project identifier is too time-consuming and error-prone.

The compromise we found is to path the authentication script so that is also looks at the pool of repository identifiers when authenticating a git-smart-http request:

  1. extract the project/repository identifier from the request URI
  2. if it is a project identifier, use that project to authenticate the request
  3. if it is a repository identifier, use the first project it belongs to authenticate the request.

While this patch does not represent a full solution to the multi-repository problem, I hope it helps others in the same situation as us.

repo-id-auth.patch Magnifier (949 Bytes) Ciprian Ciubotariu, 2013-07-23 17:04


#1 Updated by Toshi MARUYAMA over 9 years ago

  • Category changed from SCM to SCM extra

Also available in: Atom PDF