summaryrefslogtreecommitdiff
path: root/lorrycontroller
diff options
context:
space:
mode:
authorBen Brown <ben.brown@codethink.co.uk>2020-07-30 09:42:58 +0000
committerBen Brown <ben.brown@codethink.co.uk>2020-07-30 09:42:58 +0000
commit6e1b4a4363149230dfac57157d894b1fd5528db7 (patch)
tree40eedeb75f2ec0129913595eb46e70e8ff916e6d /lorrycontroller
parentcc7b3d680fe0d181dcde31bfb54baf391e035c4e (diff)
parent09e0b549bcff9afdffb0ff9bd3f6f2878589f568 (diff)
downloadlorry-controller-6e1b4a4363149230dfac57157d894b1fd5528db7.tar.gz
Merge branch 'bwh/local-empty-description' into 'master'
local: Create repos with empty description and enabled for export Closes #16 See merge request CodethinkLabs/lorry/lorry-controller!20
Diffstat (limited to 'lorrycontroller')
-rw-r--r--lorrycontroller/local.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/lorrycontroller/local.py b/lorrycontroller/local.py
index d55214d..aee87b8 100644
--- a/lorrycontroller/local.py
+++ b/lorrycontroller/local.py
@@ -16,6 +16,7 @@
import logging
import os
import os.path
+import sys
import cliapp
@@ -45,7 +46,11 @@ class LocalDownstream(hosts.DownstreamHost):
# These are idempotent, so we don't need to explicitly check
# whether the repository already exists
os.makedirs(repo_path, exist_ok=True)
- cliapp.runcmd(['git', 'init', '--bare', repo_path])
+ cliapp.runcmd(
+ ['git', 'init', '--bare',
+ '--template',
+ os.path.join(sys.prefix, 'share/lorry-controller/git-templates'),
+ repo_path])
if 'head' in metadata:
cliapp.runcmd(['git', '--git-dir', repo_path,