Repository navigation
fix(tools): retain source commit when Git status fails - #5713
Merged
adriadam10 merged 1 commit intoOct 15, 2026
Merged
Conversation
11 tasks done
12 tasks done
12 tasks done
|
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
Collaborator
|
Checked |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
An audit JSON loses a valid
source_commitwhengit rev-parse HEADsucceeds butgit status --porcelainfails, for example because a submodule's Git directory is unreadable or missing. This occurred in a local title audit: the source revision was readable, but status failed on LibAtrac9 and the report set both provenance fields to null.Keep the successfully read revision and set only
source_dirtyto null when status is unavailable. A failed revision query still leaves both fields null. Import classification and exit status are unchanged.Tested
Windows x64, Python 3.14 and Git; current main
b27d18c3e, headfd3c67960.source_dirtynull rather than dropping both fields.git_stampor implements this partial-provenance handling.Current-head CI for
fd3c67960passed conventions and eligibility, plus all three relinker builds and complete test suites (Build):Full runtime-library jobs were skipped by the repository's PR workflow.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)