Skip to content

Commit 5177902

Browse files
AbirAbbasclaude
andcommitted
fix: move Dockerfile comments outside RUN to fix gh auth setup-git
Inline # comments inside a multiline RUN broke shell parsing — the gh auth setup-git command was never executed. Move comments above the RUN instruction so the credential helper is properly configured. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 226749f commit 5177902

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,10 @@ ENV GIT_AUTHOR_NAME="SWE-AF" \
2929
GIT_COMMITTER_NAME="SWE-AF" \
3030
GIT_COMMITTER_EMAIL="contact@agentfield.com"
3131

32+
# Configure git identity and use gh CLI as credential helper so all git
33+
# HTTPS operations (clone, push, fetch) authenticate via GH_TOKEN at runtime.
3234
RUN git config --global user.name "SWE-AF" && \
3335
git config --global user.email "contact@agentfield.com" && \
34-
# Use gh CLI as git credential helper — when GH_TOKEN env var is set at
35-
# runtime, all git HTTPS operations (clone, push, fetch) against GitHub
36-
# authenticate automatically without URL rewriting.
3736
gh auth setup-git
3837

3938
# Install uv for fast package installation

0 commit comments

Comments
 (0)