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 db2dbef
Browse filesBrowse the repository at this point in the historyBrowse files
Agent Host - list files changed inside submodules in Branch and Uncommitted Changes (#350254)
* Agent Host - add failing tests for changes inside submodules
Branch and Uncommitted Changes list a changed submodule as one `+0 -0`
entry instead of the files changed inside it, and the baselines, discards
and change fingerprint of those files don't use the submodule.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Agent Host - list files changed inside submodules in Branch and Uncommitted Changes
Git reports a changed submodule as a single entry, if at all, so the
Changes view showed `lib +0 -0` once a turn ended and dropped the files the
agent had changed inside the submodule. List those files instead, diffed
against the commit that the base records for the submodule, include
submodules in the Branch Changes fingerprint, and read baselines and
discard changes in the submodule.
Fixes#316604
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Agent Host - ignore registered submodule paths that resolve outside the repository
A `.gitmodules` path that is a symlink passed the lexical containment
check, so `getSubmoduleRoot` could route `git show` for a `git-blob:`
baseline into a repository outside the session. Only count a submodule
whose folder resolves to its place inside the resolved repository root.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Agent Host - compare submodule test paths against the root Git reports
On the Windows runners the temporary folder is an 8.3 short name, which
`realpathSync` keeps, while Git reports the repository root with its
long name. The test computed every changed path relative to the short
name, so it failed although the diffs were right. Make the paths relative
to the root that `getRepositoryRoot` reports, and stop resolving the
folder so that macOS, where the temporary folder is a symlink, covers
the same mismatch.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments