From 56e7fae33af6b2a7884cd012cdca9eeaa4b8ea60 Mon Sep 17 00:00:00 2001 From: Vladimir Vagaytsev Date: Thu, 21 Sep 2023 14:28:17 +0200 Subject: [PATCH] chore: remove unnecessary `git init` calls for `static` dirs --- cli/src/build-pkg.ts | 1 - support/alpine.Dockerfile | 1 - support/buster.Dockerfile | 1 - 3 files changed, 3 deletions(-) diff --git a/cli/src/build-pkg.ts b/cli/src/build-pkg.ts index 932db50da8..eb88e05189 100644 --- a/cli/src/build-pkg.ts +++ b/cli/src/build-pkg.ts @@ -92,7 +92,6 @@ async function buildBinaries(args: string[]) { // Copy static dir, stripping out undesired files for the dist build console.log(chalk.cyan("Copying static directory")) await exec("rsync", ["-r", "-L", "--exclude=.garden", "--exclude=.git", STATIC_DIR, tmpDirPath]) - await exec("git", ["init"], { cwd: tmpStaticDir }) // Copy each package to the temp dir console.log(chalk.cyan("Getting package info")) diff --git a/support/alpine.Dockerfile b/support/alpine.Dockerfile index f3e3c104f3..2db3631119 100644 --- a/support/alpine.Dockerfile +++ b/support/alpine.Dockerfile @@ -55,7 +55,6 @@ FROM garden-alpine-base-$VARIANT as garden-alpine-base # Note: This Dockerfile is run with dist/linux-amd64 as the context root ADD --chown=$USER:root . /garden ENV PATH /garden:$PATH -RUN cd /garden/static && git init WORKDIR $HOME RUN GARDEN_DISABLE_ANALYTICS=true GARDEN_DISABLE_VERSION_CHECK=true garden util fetch-tools --all --garden-image-build diff --git a/support/buster.Dockerfile b/support/buster.Dockerfile index 1ef488fe50..779fd7ddd8 100644 --- a/support/buster.Dockerfile +++ b/support/buster.Dockerfile @@ -46,7 +46,6 @@ FROM buster-base-$VARIANT as buster-base # Note: This Dockerfile is run with dist/linux-amd64 as the context root ADD --chown=$USER:root . /garden ENV PATH /garden:$PATH -RUN cd /garden/static && git init WORKDIR $HOME RUN GARDEN_DISABLE_ANALYTICS=true GARDEN_DISABLE_VERSION_CHECK=true garden util fetch-tools --all --garden-image-build