Skip to content

Commit

Permalink
chore: remove unnecessary git init calls for static dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
vvagaytsev committed Sep 21, 2023
1 parent 3a319f9 commit a686596
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion cli/src/build-pkg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,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"))
Expand Down
1 change: 0 additions & 1 deletion support/alpine.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion support/buster.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a686596

Please sign in to comment.