From e09b0ddccbcf1a572b743f7c32a544f5a05807a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Valyi?= Date: Mon, 14 Aug 2023 21:01:42 -0300 Subject: [PATCH] prefetch single branch --- 14.0/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/14.0/Dockerfile b/14.0/Dockerfile index 263f18f..4acac55 100644 --- a/14.0/Dockerfile +++ b/14.0/Dockerfile @@ -16,4 +16,6 @@ COPY repos.yml /root/.config/git-autoshare/repos.yml RUN pip install git-autoshare git-aggregator COPY bin/* /usr/local/bin/ ADD https://api.github.com/repos/odoo/odoo/git/refs/heads/14.0 version.json -RUN /usr/local/bin/git clone https://github.com/odoo/odoo.git -b 14.0 --bare --single-branch +RUN mkdir -p /root/.cache/git-autoshare/github.com/odoo && \ + /usr/bin/git init --bare && \ + git fetch https://github.com/odoo/odoo.git refs/heads/14.0:refs/git-autoshare/odoo/heads/14.0