From 96465d6267643460da1b66e06e115455cdbeb2a8 Mon Sep 17 00:00:00 2001 From: nocci Date: Fri, 12 Dec 2025 11:36:05 +0000 Subject: [PATCH] Init git repo when building exchange/merchant from tarball --- Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index c15ee9d..35869d1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -85,6 +85,9 @@ RUN set -e; \ git clone --depth 1 --branch "${EXCHANGE_REF}" https://git.taler.net/exchange.git /src/exchange; \ EXCHANGE_DIR="/src/exchange"; \ fi; \ + if [ ! -d "${EXCHANGE_DIR}/.git" ]; then \ + (cd "${EXCHANGE_DIR}" && git init >/dev/null 2>&1); \ + fi; \ cd "${EXCHANGE_DIR}" && env GNUNET_PREFIX=/usr GIT_CONFIG_NOSYSTEM=1 GIT_DIR= GIT_WORK_TREE=. ./bootstrap && \ ./configure --prefix=/usr && make -j$(nproc) && make install; \ # Merchant @@ -106,6 +109,9 @@ RUN set -e; \ git clone --depth 1 --branch "${MERCHANT_REF}" https://git.taler.net/merchant.git /src/merchant; \ MERCHANT_DIR="/src/merchant"; \ fi; \ + if [ ! -d "${MERCHANT_DIR}/.git" ]; then \ + (cd "${MERCHANT_DIR}" && git init >/dev/null 2>&1); \ + fi; \ cd "${MERCHANT_DIR}" && env GNUNET_PREFIX=/usr GIT_CONFIG_NOSYSTEM=1 GIT_DIR= GIT_WORK_TREE=. ./bootstrap && \ ./configure --prefix=/usr && make -j$(nproc) && make install