Skip to content

Add -- end-of-options separator to git fetch in harness clone - #16

Open
jamesgol wants to merge 1 commit into
capitalone:mainfrom
jamesgol:fix/harness-clone-input-validation
Open

Add -- end-of-options separator to git fetch in harness clone#16
jamesgol wants to merge 1 commit into
capitalone:mainfrom
jamesgol:fix/harness-clone-input-validation

Conversation

@jamesgol

Copy link
Copy Markdown

The agent-side clone.py already uses -- separators in its git subprocess calls to guard against values that could be misinterpreted as flags. The harness-side clone_at_commit() passes the commit hash straight to git fetch without one. This brings the harness in line with the agent's existing defensive style.

Prevents option-like values from being interpreted as git flags.
@jamesgol
jamesgol requested a review from a team as a code owner July 25, 2026 04:07
@CLAassistant

CLAassistant commented Jul 25, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants