Skip to content

Commit e0c046c

Browse files
sjarmakclaude
andcommitted
fix: add git init -b main to 28 more Dockerfile.sg_only files
Previous fix (899516a) only caught 38 files with COPY repo pattern. These 28 files use git clone into subdirectories or WORKDIR, leaving the workspace without .git/ for the truncation commit step. Affected suites: ccb_build(5), ccb_design(5), ccb_fix(5), ccb_secure(1), ccb_test(12) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 899516a commit e0c046c

File tree

28 files changed

+28
-28
lines changed

28 files changed

+28
-28
lines changed

benchmarks/ccb_build/envoy-grpc-server-impl-001/environment/Dockerfile.sg_only

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ RUN find /workspace -type f \( -name "*.py" -o -name "*.pyx" -o -name "*.pyi" -o
4141
# Recommit truncated state so git history cannot recover full files.
4242
# Without this, `git show HEAD:<file>` or `git checkout HEAD -- <file>`
4343
# would bypass truncation by reading from the pre-truncation commit.
44-
RUN cd /workspace && git config user.email "agent@example.com" && git config user.name "Agent" && git add -A && git commit -m "sg_only truncation" --allow-empty --quiet
44+
RUN cd /workspace && git init -b main && git config user.email "agent@example.com" && git config user.name "Agent" && git add -A && git commit -m "sg_only truncation" --allow-empty --quiet
4545
RUN touch /tmp/.sg_only_mode && echo '/workspace' > /tmp/.sg_only_workdir
4646
CMD ["/bin/bash"]

benchmarks/ccb_build/k8s-runtime-object-impl-001/environment/Dockerfile.sg_only

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ RUN find /workspace -type f \( -name "*.py" -o -name "*.pyx" -o -name "*.pyi" -o
3636
# Recommit truncated state so git history cannot recover full files.
3737
# Without this, `git show HEAD:<file>` or `git checkout HEAD -- <file>`
3838
# would bypass truncation by reading from the pre-truncation commit.
39-
RUN cd /workspace && git config user.email "agent@example.com" && git config user.name "Agent" && git add -A && git commit -m "sg_only truncation" --allow-empty --quiet
39+
RUN cd /workspace && git init -b main && git config user.email "agent@example.com" && git config user.name "Agent" && git add -A && git commit -m "sg_only truncation" --allow-empty --quiet
4040
RUN touch /tmp/.sg_only_mode && echo '/workspace' > /tmp/.sg_only_workdir
4141
CMD ["/bin/bash"]

benchmarks/ccb_build/servo-scrollend-event-feat-001/environment/Dockerfile.sg_only

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ RUN find /workspace -type f \( -name "*.py" -o -name "*.pyx" -o -name "*.pyi" -o
3535
# Recommit truncated state so git history cannot recover full files.
3636
# Without this, `git show HEAD:<file>` or `git checkout HEAD -- <file>`
3737
# would bypass truncation by reading from the pre-truncation commit.
38-
RUN cd /workspace && git add -A && git commit -m "sg_only truncation" --allow-empty --quiet
38+
RUN cd /workspace && git init -b main && git add -A && git commit -m "sg_only truncation" --allow-empty --quiet
3939
RUN touch /tmp/.sg_only_mode && echo '/workspace' > /tmp/.sg_only_workdir
4040

4141
WORKDIR /workspace

benchmarks/ccb_build/tensorrt-mxfp4-quant-feat-001/environment/Dockerfile.sg_only

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ RUN find /workspace -type f \( -name "*.py" -o -name "*.pyx" -o -name "*.pyi" -o
3737
# Recommit truncated state so git history cannot recover full files.
3838
# Without this, `git show HEAD:<file>` or `git checkout HEAD -- <file>`
3939
# would bypass truncation by reading from the pre-truncation commit.
40-
RUN cd /workspace && git add -A && git commit -m "sg_only truncation" --allow-empty --quiet
40+
RUN cd /workspace && git init -b main && git add -A && git commit -m "sg_only truncation" --allow-empty --quiet
4141
RUN touch /tmp/.sg_only_mode && echo '/workspace' > /tmp/.sg_only_workdir
4242

4343
WORKDIR /workspace

benchmarks/ccb_build/vscode-stale-diagnostics-feat-001/environment/Dockerfile.sg_only

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ RUN find /workspace -type f \( -name "*.py" -o -name "*.pyx" -o -name "*.pyi" -o
3535
# Recommit truncated state so git history cannot recover full files.
3636
# Without this, `git show HEAD:<file>` or `git checkout HEAD -- <file>`
3737
# would bypass truncation by reading from the pre-truncation commit.
38-
RUN cd /workspace && git add -A && git commit -m "sg_only truncation" --allow-empty --quiet
38+
RUN cd /workspace && git init -b main && git add -A && git commit -m "sg_only truncation" --allow-empty --quiet
3939
RUN touch /tmp/.sg_only_mode && echo '/workspace' > /tmp/.sg_only_workdir
4040

4141
WORKDIR /workspace

benchmarks/ccb_design/envoy-routeconfig-dep-chain-001/environment/Dockerfile.sg_only

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ RUN find /workspace -type f \( -name "*.py" -o -name "*.pyx" -o -name "*.pyi" -o
4040
# Recommit truncated state so git history cannot recover full files.
4141
# Without this, `git show HEAD:<file>` or `git checkout HEAD -- <file>`
4242
# would bypass truncation by reading from the pre-truncation commit.
43-
RUN cd /workspace && git config user.email "agent@example.com" && git config user.name "Agent" && git add -A && git commit -m "sg_only truncation" --allow-empty --quiet
43+
RUN cd /workspace && git init -b main && git config user.email "agent@example.com" && git config user.name "Agent" && git add -A && git commit -m "sg_only truncation" --allow-empty --quiet
4444
RUN touch /tmp/.sg_only_mode && echo '/workspace' > /tmp/.sg_only_workdir
4545
CMD ["/bin/bash"]

benchmarks/ccb_design/envoy-stream-aggregated-sym-001/environment/Dockerfile.sg_only

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ RUN find /workspace -type f \( -name "*.py" -o -name "*.pyx" -o -name "*.pyi" -o
3636
# Recommit truncated state so git history cannot recover full files.
3737
# Without this, `git show HEAD:<file>` or `git checkout HEAD -- <file>`
3838
# would bypass truncation by reading from the pre-truncation commit.
39-
RUN cd /workspace && git config user.email "agent@example.com" && git config user.name "Agent" && git add -A && git commit -m "sg_only truncation" --allow-empty --quiet
39+
RUN cd /workspace && git init -b main && git config user.email "agent@example.com" && git config user.name "Agent" && git add -A && git commit -m "sg_only truncation" --allow-empty --quiet
4040
RUN touch /tmp/.sg_only_mode && echo '/workspace' > /tmp/.sg_only_workdir
4141
CMD ["/bin/bash"]

benchmarks/ccb_design/k8s-sharedinformer-sym-001/environment/Dockerfile.sg_only

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ RUN find /workspace -type f \( -name "*.py" -o -name "*.pyx" -o -name "*.pyi" -o
3636
# Recommit truncated state so git history cannot recover full files.
3737
# Without this, `git show HEAD:<file>` or `git checkout HEAD -- <file>`
3838
# would bypass truncation by reading from the pre-truncation commit.
39-
RUN cd /workspace && git config user.email "agent@example.com" && git config user.name "Agent" && git add -A && git commit -m "sg_only truncation" --allow-empty --quiet
39+
RUN cd /workspace && git init -b main && git config user.email "agent@example.com" && git config user.name "Agent" && git add -A && git commit -m "sg_only truncation" --allow-empty --quiet
4040
RUN touch /tmp/.sg_only_mode && echo '/workspace' > /tmp/.sg_only_workdir
4141
CMD ["/bin/bash"]

benchmarks/ccb_design/k8s-typemeta-dep-chain-001/environment/Dockerfile.sg_only

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ RUN find /workspace -type f \( -name "*.py" -o -name "*.pyx" -o -name "*.pyi" -o
4040
# Recommit truncated state so git history cannot recover full files.
4141
# Without this, `git show HEAD:<file>` or `git checkout HEAD -- <file>`
4242
# would bypass truncation by reading from the pre-truncation commit.
43-
RUN cd /workspace && git config user.email "agent@example.com" && git config user.name "Agent" && git add -A && git commit -m "sg_only truncation" --allow-empty --quiet
43+
RUN cd /workspace && git init -b main && git config user.email "agent@example.com" && git config user.name "Agent" && git add -A && git commit -m "sg_only truncation" --allow-empty --quiet
4444
RUN touch /tmp/.sg_only_mode && echo '/workspace' > /tmp/.sg_only_workdir
4545
CMD ["/bin/bash"]

benchmarks/ccb_design/terraform-provider-iface-sym-001/environment/Dockerfile.sg_only

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ RUN find /workspace -type f \( -name "*.py" -o -name "*.pyx" -o -name "*.pyi" -o
3636
# Recommit truncated state so git history cannot recover full files.
3737
# Without this, `git show HEAD:<file>` or `git checkout HEAD -- <file>`
3838
# would bypass truncation by reading from the pre-truncation commit.
39-
RUN cd /workspace && git config user.email "agent@example.com" && git config user.name "Agent" && git add -A && git commit -m "sg_only truncation" --allow-empty --quiet
39+
RUN cd /workspace && git init -b main && git config user.email "agent@example.com" && git config user.name "Agent" && git add -A && git commit -m "sg_only truncation" --allow-empty --quiet
4040
RUN touch /tmp/.sg_only_mode && echo '/workspace' > /tmp/.sg_only_workdir
4141
CMD ["/bin/bash"]

0 commit comments

Comments
 (0)