Skip to content

Commit 7130823

Browse files
committed
fix: revert Dockerfile git-lfs changes, add GIT_LFS_SKIP_SMUDGE to snapshot clone
1 parent 6036b78 commit 7130823

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ FROM debian:bookworm-slim
1313

1414
# Pre-install all common runtimes and tools at build time (as root)
1515
RUN apt-get update && apt-get install -y --no-install-recommends \
16-
ca-certificates git git-lfs curl wget unzip libssl3 libssl-dev pkg-config sudo openssh-client \
16+
ca-certificates git curl wget unzip libssl3 libssl-dev pkg-config sudo openssh-client \
1717
python3 python3-pip python3-venv python3-dev \
1818
build-essential gcc g++ make cmake autoconf automake libtool \
1919
default-jdk maven gradle \
@@ -24,7 +24,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
2424
imagemagick libmagickwand-dev \
2525
jq \
2626
&& ln -sf /usr/bin/python3 /usr/bin/python \
27-
&& git lfs install \
2827
&& rm -rf /var/lib/apt/lists/*
2928

3029
# Install Go 1.23 (Debian bookworm ships 1.19 which is too old for most projects)

src/swe_forge/client.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ impl HuggingFaceClient {
222222
.args(["clone", "--depth", "1"])
223223
.arg(&repo_url)
224224
.arg(cache_dir.as_os_str())
225+
.env("GIT_LFS_SKIP_SMUDGE", "1")
225226
.stdout(std::process::Stdio::piped())
226227
.stderr(std::process::Stdio::piped())
227228
.output()

0 commit comments

Comments
 (0)