Repository navigation
[3.0] Only commits the manifest when update_manifest.php is asked to - #9687
Merged
Sesquipedalian merged 1 commit intoSep 13, 2026
Conversation
update_manifest.php creates no branch of its own, so it staged the manifest and committed it onto whatever branch was checked out. Both of its callers want the file regenerated rather than committed: the Docker entrypoint, which runs it against the developer's checkout, and the hint the installer and upgrader show developers when the manifest is out of date. It now writes the manifest and stops, and commits only when given 'commit' as an argument. That is a bare word rather than --commit because PHP reads options after `php -f file` as its own, and `php -f` is how these scripts are documented. ManifestUpdater stages the file inside commit(), so a build that is not committed leaves the index alone. prepare_release.php commits through the same method and is unaffected. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Signed-off-by: albertlast <mathiaspapealbert@hotmail.com>
This was referenced Sep 13, 2026
Sesquipedalian
approved these changes
Sep 13, 2026
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.
Description
other/update_manifest.phpbuildsSources/Maintenance/manifest.php, then stages it and commits it. Unlike the other standaloneupdate_*.phpscripts it creates no branch of its own, so that commit lands on whatever branch happens to be checked out.Two things run it wanting only a fresh file:
On
release-3.0, after nothing more thandocker compose up:So the developer's next ordinary commit carries a 2016-line generated file. The container's own commit attempt fails only because it has no Git identity (
Author identity unknownin the web log). Given one, the same entrypoint command committed straight onto the checked-out branch:This makes committing opt-in. The script writes the manifest and stops unless it is given
commitas an argument, andManifestUpdaterstages the file insidecommit()rather thanexecute(), so a build that is not committed leaves the index alone.It is a bare word rather than
--commitbecause PHP reads options afterphp -f fileas its own —php -f other/update_manifest.php --commitstops with Error in argument 3, char 2: no argument for option - — andphp -fis how these scripts are documented.update_version_numbers.phptakes itsdevargument the same way.prepare_release.phpcallsexecute()and thencommit()itself, so it still commits the manifest.Verified in a clone of this branch with a Git identity set, so any commit would really land:
The dirty-tree guard in
UpdaterBaseis unchanged, so on a checkout with local edits the script still refuses to run and the entrypoint builds no manifest. That is a separate question and is not touched here.None of this is reachable from the PHPUnit suite:
other/is outside it, and what is being tested is what the script does to Git.Issues References (Fixes|Related|Closes)
🤖 Generated with Claude Code