From a28169aedea4ef9245b2042972bd4d2eb41b20ec Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Tue, 9 Jul 2019 12:28:55 +0100 Subject: Support 'local' git-server-type for local mirrors In this scenario, where the mirror would be in the local filesystem, lorry will be the one initialising the repository. --- lorry-controller-webapp | 2 +- lorrycontroller/givemejob.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lorry-controller-webapp b/lorry-controller-webapp index 43cff0d..18b28a9 100755 --- a/lorry-controller-webapp +++ b/lorry-controller-webapp @@ -131,7 +131,7 @@ class WEBAPP(cliapp.Application): self.settings.choice( ['git-server-type'], - ['gitano', 'gerrit', 'gitlab'], + ['gitano', 'gerrit', 'gitlab', 'local'], 'what API the local Git server speaks') self.settings.string( diff --git a/lorrycontroller/givemejob.py b/lorrycontroller/givemejob.py index dd4de87..a893036 100644 --- a/lorrycontroller/givemejob.py +++ b/lorrycontroller/givemejob.py @@ -70,6 +70,8 @@ class GiveMeJob(lorrycontroller.LorryControllerRoute): self.create_gerrit_project(statedb, lorry_info) elif api == 'gitlab': self.create_gitlab_project(statedb, lorry_info) + elif api == 'local': + pass def create_repository_in_local_trove(self, statedb, lorry_info): # Create repository on local Trove. If it fails, assume -- cgit v1.2.1