Skip to content

Commit a77167c

Browse files
sjarmakclaude
andcommitted
fix: disable git hooks in protonmail sg_only Dockerfiles
Protonmail/webclients repos have husky git hooks that run yarn on commit. After source truncation, package.json is empty, causing yarn to fail. Remove .husky and .git/hooks before the truncation commit to prevent this. Affected: protonmail-dropdown-sizing-fix-001, protonmail-holiday- calendar-fix-001, protonmail-conv-testhooks-fix-001. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d96db63 commit a77167c

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

benchmarks/ccb_fix/protonmail-conv-testhooks-fix-001/environment/Dockerfile.sg_only

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ RUN find /app -type f \( -name "*.py" -o -name "*.pyx" -o -name "*.pyi" -o -name
2828
# Recommit truncated state so git history cannot recover full files.
2929
RUN cd /app && git config user.email "agent@example.com" && \
3030
git config user.name "Agent" && \
31+
rm -rf /app/.husky /app/.git/hooks/* && \
3132
git add -A && git commit -m "sg_only truncation" --allow-empty --quiet
3233

3334
# Clone manifest for verifier (clone-at-verify strategy)

benchmarks/ccb_fix/protonmail-dropdown-sizing-fix-001/environment/Dockerfile.sg_only

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ RUN find /app -type f \( -name "*.py" -o -name "*.pyx" -o -name "*.pyi" -o -name
2828
# Recommit truncated state so git history cannot recover full files.
2929
RUN cd /app && git config user.email "agent@example.com" && \
3030
git config user.name "Agent" && \
31+
rm -rf /app/.husky /app/.git/hooks/* && \
3132
git add -A && git commit -m "sg_only truncation" --allow-empty --quiet
3233

3334
# Clone manifest for verifier (clone-at-verify strategy)

benchmarks/ccb_fix/protonmail-holiday-calendar-fix-001/environment/Dockerfile.sg_only

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ RUN find /app -type f \( -name "*.py" -o -name "*.pyx" -o -name "*.pyi" -o -name
2828
# Recommit truncated state so git history cannot recover full files.
2929
RUN cd /app && git config user.email "agent@example.com" && \
3030
git config user.name "Agent" && \
31+
rm -rf /app/.husky /app/.git/hooks/* && \
3132
git add -A && git commit -m "sg_only truncation" --allow-empty --quiet
3233

3334
# Clone manifest for verifier (clone-at-verify strategy)

0 commit comments

Comments
 (0)