diff options
author | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2019-07-09 12:28:55 +0100 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2019-07-09 12:29:03 +0100 |
commit | a28169aedea4ef9245b2042972bd4d2eb41b20ec (patch) | |
tree | d186ff9b19cdcf08986f1dd6c0dc4a51841b7613 | |
parent | 87d97ba405039ac3c45a18ee4e310a77ff507fb5 (diff) | |
download | lorry-controller-a28169aedea4ef9245b2042972bd4d2eb41b20ec.tar.gz |
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.
-rwxr-xr-x | lorry-controller-webapp | 2 | ||||
-rw-r--r-- | lorrycontroller/givemejob.py | 2 |
2 files changed, 3 insertions, 1 deletions
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 |