From b79684d2f582d4558abcc410b3de714fa154e050 Mon Sep 17 00:00:00 2001 From: Joaquin Bogado Date: Mon, 2 Sep 2024 16:59:01 -0300 Subject: [PATCH] Fix cloning error in automatic1111 service dockerfile Fix this error I got while cloning stability-ai repo ``` 0.112 Initialized empty Git repository in /repositories/stable-diffusion-stability-ai/.git/ 0.112 + git remote add origin https://github.com/Stability-AI/stablediffusion.git 0.113 + git fetch origin cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf '--depth=1' 90.31 error: 1485 bytes of body are still expected 90.31 fetch-pack: unexpected disconnect while reading sideband packet 90.31 fatal: early EOF 90.31 fatal: fetch-pack: invalid index-pack output``` --- services/AUTOMATIC1111/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/AUTOMATIC1111/Dockerfile b/services/AUTOMATIC1111/Dockerfile index d595784..f6c6102 100644 --- a/services/AUTOMATIC1111/Dockerfile +++ b/services/AUTOMATIC1111/Dockerfile @@ -2,6 +2,9 @@ FROM alpine/git:2.36.2 as download COPY clone.sh /clone.sh +RUN git config --global http.version HTTP/1.1 +RUN git config --global http.postBuffer 157286400 + RUN . /clone.sh stable-diffusion-webui-assets https://github.com/AUTOMATIC1111/stable-diffusion-webui-assets.git 6f7db241d2f8ba7457bac5ca9753331f0c266917 RUN . /clone.sh stable-diffusion-stability-ai https://github.com/Stability-AI/stablediffusion.git cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf \