Skip to content

Commit

Permalink
single branch +full fetch for faster merges
Browse files Browse the repository at this point in the history
  • Loading branch information
rvalyi committed Aug 18, 2023
1 parent c1dc690 commit 35046f2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions 14.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,12 @@ RUN pip install git+https://github.com/akretion/ak
RUN pip install git-aggregator
COPY install/* /install/

# pre-fetch the git-autoshare cache with the bare minimum:
# (git-autoshare reference cannot be shallow at all sadly)
# pre-fetch /odoo/src for CoW git-aggregator convergence atop of it.
ADD https://api.github.com/repos/odoo/odoo/git/refs/heads/14.0 version.json
RUN mkdir -p /odoo/src && \
cd /odoo/src && \
git init && \
git remote add odoo https://github.com/odoo/odoo.git && \
git fetch odoo 14.0 --shallow-since=2020-10-01 && \
git fetch odoo 14.0 --filter=blob:none && \
git remote add oca https://github.com/oca/ocb.git && \
git fetch oca 14.0 --shallow-since=2020-10-01
git fetch oca 14.0

0 comments on commit 35046f2

Please sign in to comment.