You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 330fea3
Browse filesBrowse the repository at this point in the historyBrowse files
fix(git)!: scope one-shot options to the returned wrapper
Rubber-stamp tests.
Just a rubber-stamp for everything, but looked at the code at least to see if something
sticks out.
And what stuck out is statefulness of Git command execution.
<!-- agent -->
Calling `repo.git(**options)` used to queue options on the shared `Git`
wrapper. A source lookup in `Remote.push()` could consume options meant
for the push, so the push skipped that lookup and could leave
`PushInfo.local_hash` unset.
Return a separate wrapper that applies the options to its next
subcommand. Chained calls still work, but discarding the wrapper no
longer affects later repository operations. Remove the push guard and
the commit hook's save-and-restore logic. For repository operations,
use per-call environment overrides or `set_persistent_git_options()`.
The non-network command, remote, index, and downstream compatibility
tests passed on both CLI and Gix (307 passed per backend).
Agent-Model: gpt-6.2-sol
0 commit comments