From c85e04f7e8c92daa01927db9f0430e52cc22ea3a Mon Sep 17 00:00:00 2001 From: tmp64 Date: Sun, 3 Dec 2023 02:04:04 +0000 Subject: [PATCH] Dockerfile: Refresh Git index --- Dockerfile.linux | 3 +++ Dockerfile.windows | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Dockerfile.linux b/Dockerfile.linux index d06deab..161dd2f 100644 --- a/Dockerfile.linux +++ b/Dockerfile.linux @@ -18,6 +18,9 @@ RUN apt-get install -y \ WORKDIR /build/bhl COPY . . +# Refresh Git index after .git is copied +RUN git update-index --refresh + RUN python3.8 ./scripts/BuildRelease.py \ --target client \ --build-type release \ diff --git a/Dockerfile.windows b/Dockerfile.windows index 22ee9e5..1675691 100644 --- a/Dockerfile.windows +++ b/Dockerfile.windows @@ -4,6 +4,9 @@ FROM bhl-build WORKDIR /build/bhl COPY . . +# Refresh Git index after .git is copied +RUN git update-index --refresh + RUN python ./scripts/BuildRelease.py \ --target client \ --build-type release \