From 8cfffc49bc309084b91d02f1ff548e6784c02e9b Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Wed, 9 Jan 2019 20:34:12 +0000 Subject: [PATCH] Add support for specifying which refs to replicate Sometimes one would like to only replicate a subset of the refs in a git repo, such as not replicating refs/changes. Change-Id: Ibf6c02d59c6901f82be6a96b676b1bd28c4b61f7 --- templates/replication.config.erb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/replication.config.erb b/templates/replication.config.erb index c84036f..d4164fa 100644 --- a/templates/replication.config.erb +++ b/templates/replication.config.erb @@ -27,4 +27,9 @@ defaultForceUpdate = <%= @replication_force_update %> projects = <%= project %> <% end -%> <% end -%> +<% if replication['push'] != nil -%> +<% replication['push'].each do |pushref| -%> + push = <%= pushref %> +<% end -%> +<% end -%> <% end -%>